Checkbox checked attribute
Checkbox Object
Definition and Usage
The checked attribute sets or returns whether the checkbox should be checked.
Syntax
Set the checked attribute:
checkboxObject.checked=true|false
Return the checked attribute:
checkboxObject.checked
Browser support





All major browsers support the checked attribute
Example
Example
The example below sets the state of the checkbox:
Try it »
More examples
Checkbox - convert text to uppercase
Checkbox Object