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

The radio Object [2|3|I]

The radio Object [2|3|I]

The radio object reflects a set of radio buttons 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