RadioNodeList
The RadioNodeList
interface represents a collection of radio elements in a <form>
or a <fieldset>
element.
Properties
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 thevalue
property, thevalue
of the currentlychecked
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 inchecked
state, the empty string is returned. On setting thevalue
property, the first radio button input element whosevalue
property is equal to the new value will be set tochecked
.
Methods
The RadioNodeList
interface inherits the methods of NodeList
.
Specifications
Specification |
---|
HTML Standard (HTML) # radionodelist |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
RadioNodeList |
34 |
12 |
33 |
Yes |
Yes |
10 |
≤37 |
Yes |
33 |
Yes |
9 |
Yes |
value |
34 |
18 |
33 |
Yes |
Yes |
10 |
≤37 |
Yes |
33 |
Yes |
9 |
Yes |
See also
- The
<form>
,<fieldset>
,<input>
elements.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList