Name
checked — NN 2 IE 3 DOM 1
Synopsis
Read/Write
Whether the radio button is selected or turned on by the user. To
find out whether the form element is set to be highlighted when the
page loads, see the defaultChecked
property.
Example
if (document.choiceForm.myRadio[0].checked) {
process for the "monitors" checkbox being checked
}
Value
Boolean: true
| false
.
Default
false
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.