Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

defaultChecked property

Sets or retrieves the state of the check box or radio button.

Syntax

JavaScript

p = object.defaultChecked

 

Property values

Type: Boolean

true (true)

Default. Check box or radio button is selected by default.

false (false)

Check box or radio button is not selected by default.

Standards information

Remarks

The property can be changed programmatically, but doing so has no effect on the appearance of the check box or radio button or on how forms are submitted.

See also

input type=checkbox
input type=radio
checked

 

 

Show:
© 2015 Microsoft