Checkbox defaultChecked attribute
Checkbox Object
Definition and Usage
The defaultChecked attribute returns the default value of the checked attribute.
This attribute returns true if the checkbox is checked by default, otherwise it returns false.
Syntax
checkboxObject.defaultChecked
Browser support





All major browsers support the defaultChecked attribute
Example
Example
The example below returns the value of the checked attribute:
Try it »
Checkbox Object