DOM Input Radio Object
The Input Radio object represents a radio button in an HTML form.
For each <input type="radio">
tag in an HTML form, a Radio object is created.
The Input Radio object can be accessed by searching through the elements[] array of the form, or by using document.getElementById().
Properties
Property | Description |
---|---|
alt |
Sets or returns an alternate text to display if a browser does not support radio buttons |
checked |
Sets or returns the state of a radio button |
defaultChecked |
Returns the default state of a radio button |
disabled |
Sets or returns whether or not a radio button should be disabled |
form |
Returns a reference to the form that contains the radio button |
name |
Sets or returns the name of a radio button |
type |
Returns the type of form element a radio button is |
value |
Sets or returns the value of the value attribute of the radio button |
Standard Properties and Methods
This object also supports the standard properties and methods.
Standard Events
This object also supports the standard events.