RadioNodeList
The RadioNodeList interface represents a collection of elements in a <form> returned by a call to HTMLFormControlsCollection.namedItem().
Extends
Indexable
[index: number]: HTMLInputElement
Methods
[iterator]()
iterator: ArrayIterator<HTMLInputElement>;
Returns
ArrayIterator<HTMLInputElement>
Inherited from
entries()
entries(): ArrayIterator<[number, HTMLInputElement]>;
Returns an array of key, value pairs for every entry in the list.
Returns
ArrayIterator<[number, HTMLInputElement]>
Inherited from
forEach()
forEach(callbackfn, thisArg?): void;
Parameters
| Parameter | Type |
|---|---|
callbackfn | (value, key, parent) => void |
thisArg? | any |
Returns
void
Inherited from
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.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
Inherited from
keys()
keys(): ArrayIterator<number>;
Returns an list of keys in the list.
Returns
ArrayIterator<number>
Inherited from
values()
values(): ArrayIterator<HTMLInputElement>;
Returns an list of values in the list.
Returns
ArrayIterator<HTMLInputElement>
Inherited from
Properties
length
readonly length: number;
The NodeList.length property returns the number of items in a NodeList.
Inherited from
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.