A collection of HTML form control elements.

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

层级 (查看完整内容)

属性

方法

属性

length: number

Sets or retrieves the number of objects in a collection.

方法

  • 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.

    参数

    • name: string

    返回 null | Element | RadioNodeList