Checkbox disabledProperty
Checkbox Object
Example
Example 1
Disable checkbox:
<script>
document.getElementById("checkemail").disabled=true;
</script>
document.getElementById("checkemail").disabled=true;
</script>
Output result:
Try it yourself »
Definition and Usage
The disabled property sets or returns whether a checkbox is disabled.
Disabled elements are unusable, meaning they cannot be clicked. Disabled elements are usually displayed in gray in browsers.
Syntax
Setting the disabled property:
element.disabled=true|false
Returning the disabled property:
element.disabled
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the disabled property
Checkbox Object Other Extensions