Chartbreaker
    Preparing search index...

    Interface RadioNodeList

    The RadioNodeList interface represents a collection of elements in a

    returned by a call to HTMLFormControlsCollection.namedItem().

    MDN Reference

    interface RadioNodeList {
        length: number;
        value: string;
        "[iterator]"(): ArrayIterator<HTMLInputElement>;
        entries(): ArrayIterator<[number, HTMLInputElement]>;
        forEach(
            callbackfn: (
                value: HTMLInputElement,
                key: number,
                parent: NodeListOf<HTMLInputElement>,
            ) => void,
            thisArg?: any,
        ): void;
        item(index: number): HTMLInputElement;
        keys(): ArrayIterator<number>;
        values(): ArrayIterator<HTMLInputElement>;
        [index: number]: HTMLInputElement;
    }

    Hierarchy (View Summary)

    Indexable

    Index

    Properties

    length: number

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

    MDN Reference

    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

    Methods

    • 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

      • index: number

      Returns HTMLInputElement