RadioNodeList.value

If the underlying element collection contains radio buttons, the RadioNodeList.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.

Syntax

value = radioNodeList.value;
radioNodeList.value = string;

Example

var form = document.forms[0];
var radios = form.elements['myRadio'];
console.log(radios.value);
radios.value = 'Mr.';

Specifications

Specification Status Comments
HTML Living Standard
The definition of 'RadioNodeList.value' in that specification.
Living Standard Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support34 ?33 Yes Yes10
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? ?33 ?9 ?

See also

Document Tags and Contributors

Contributors to this page: sideshowbarker, fscholz, Yelmor, teoli, DirkjanOchtman
Last updated by: sideshowbarker,