Skip to main content

RadioNodeList

The RadioNodeList interface represents a collection of elements in a <form> returned by a call to HTMLFormControlsCollection.namedItem().

MDN Reference

Extends​

Indexable​

[index: number]: HTMLInputElement

Methods​

[iterator]()​

iterator: ArrayIterator<HTMLInputElement>;

Returns​

ArrayIterator<HTMLInputElement>

Inherited from​

NodeListOf.[iterator]


entries()​

entries(): ArrayIterator<[number, HTMLInputElement]>;

Returns an array of key, value pairs for every entry in the list.

Returns​

ArrayIterator<[number, HTMLInputElement]>

Inherited from​

NodeListOf.entries


forEach()​

forEach(callbackfn, thisArg?): void;

Parameters​

ParameterType
callbackfn(value, key, parent) => void
thisArg?any

Returns​

void

Inherited from​

NodeListOf.forEach


item()​

item(index): HTMLInputElement;

Returns a node from a NodeList by index. This method doesn't throw exceptions as long as you provide arguments. A value of null is returned if the index is out of range, and a TypeError is thrown if no argument is provided.

MDN Reference

Parameters​

ParameterType
indexnumber

Returns​

HTMLInputElement

Inherited from​

NodeListOf.item


keys()​

keys(): ArrayIterator<number>;

Returns an list of keys in the list.

Returns​

ArrayIterator<number>

Inherited from​

NodeListOf.keys


values()​

values(): ArrayIterator<HTMLInputElement>;

Returns an list of values in the list.

Returns​

ArrayIterator<HTMLInputElement>

Inherited from​

NodeListOf.values

Properties​

length​

readonly length: number;

The NodeList.length property returns the number of items in a NodeList.

MDN Reference

Inherited from​

NodeListOf.length


value​

value: string;

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.

MDN Reference