HTML DOM
The RadioNodeList interface represents a collection of elements in a form returned by a call to HTMLFormControlsCollection.namedItem().
Instance properties
The RadioNodeList interface inherits the properties of NodeList.
- RadioNodeList.value
- : If the underlying element collection contains radio buttons, the
valueproperty represents the checked radio button. On retrieving thevalueproperty, thevalueof the currentlycheckedradio button is returned as a string. If the collection does not contain any radio buttons or none of the radio buttons in the collection is incheckedstate, the empty string is returned. On setting thevalueproperty, the first radio button input element whosevalueproperty is equal to the new value will be set tochecked.
- : If the underlying element collection contains radio buttons, the
Instance methods
The RadioNodeList interface inherits the methods of NodeList.
Specifications
Browser compatibility
See also
- The form, input elements.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
