The RadioNodeList
interface represents a collection of elements in a <form>
or a <fieldset>
element, returned by a call to HTMLFormControlsCollection.namedItem()
.
The RadioNodeList
interface represents a collection of elements in a <form>
or a <fieldset>
element, returned by a call to HTMLFormControlsCollection.namedItem()
.
The RadioNodeList
interface inherits the properties of NodeList
.
RadioNodeList.value
If the underlying element collection contains radio buttons, the value
property represents the checked radio button. On retrieving the value
property, the value
of the currently checked
radio 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 in checked
state, the empty string is returned. On setting the value
property, the first radio button input element whose value
property is equal to the new value will be set to checked
.
The RadioNodeList
interface inherits the methods of NodeList
.
Specification |
---|
HTML Standard # radionodelist |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RadioNodeList |
21 | 12 | 33 | 9 | 15 | 7 | 4.4 | 25 | 33 | 14 | 7 | 1.5 |
value |
21 | 12 | 33 | 9 | 15 | 7 | 4.4 | 25 | 33 | 14 | 7 | 1.5 |
<form>
, <fieldset>
, <input>
elements.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList