• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part VII: Appendixes > The radio Object [2|3|I]

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 radio button is enabled. (Not 2|3.)

  • form— A reference to the form object containing the radio button. (Not 2|3.)

  • length— An integer value indicating the number of radio buttons in the set. (Not I.)

  • name— A string value containing the name of the set of radio buttons.

  • value— A string value containing the value of a specific radio button in a set (that is, it reflects the value attribute).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint