我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The RadioNodeList interface represents a collection of 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
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.
Methods
The RadioNodeList interface inherits the methods of NodeList.
Specifications
| Specification | Status | Comments |
|---|---|---|
| WHATWG HTML Living Standard The definition of 'RadioNodeList' in that specification. |
Living Standard | Initial definition |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 34 | 33 (33) | (Yes) | (Yes) | 10 |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | 33.0 (33) | ? | ? | 9 |
See also
- The
<form>,<fieldset>,<input>elements.