Interface HTMLFormControlsCollection

A collection of HTML form control elements.

MDN Reference

interface HTMLFormControlsCollection {
    length: number;
    item(index: number): null | Element;
    namedItem(name: string): null | Element | RadioNodeList;
    [index: number]: Element;
}

Hierarchy (View Summary)

Indexable

Properties

Methods

Properties

length: number

Sets or retrieves the number of objects in a collection.

MDN Reference

Methods

  • Returns the item with ID or name name from the collection.

    If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.

    MDN Reference

    Parameters

    • name: string

    Returns null | Element | RadioNodeList