The radio Object [2|3|I]

The radio object reflects a set of option or "radio" buttons (named because, like preset buttons on a radio, only one of them can be selected at a time) from an HTML form in JavaScript. To access individual radio buttons, use numeric indexes starting at zero. Individual buttons in a set of radio buttons named testRadio, for example, could be referenced by testRadio[0], testRadio[1], and so on.

Properties

  • checked— A Boolean value indicating whether a specific radio button is checked. Can be used to select or deselect a button.

  • defaultChecked— A Boolean value indicating whether a specific radio button was checked by default (that is, it reflects the checked attribute). (Not I.)

  • enabled— A Boolean value indicating whether the ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.