all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

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:
© 2014 Microsoft. All rights reserved.