Web/API/HTMLFormControlsCollection

From Get docs


The HTMLFormControlsCollection interface represents a collection of HTML form control elements. It represents the lists returned by the HTMLFormElement interface's elements property and the HTMLFieldSetElement interface's elements property.

This interface replaces one method from HTMLCollection, on which it is based.

Properties

This interface inherits the properties of its parent, HTMLCollection.

Methods

This interface inherits the methods of its parent, HTMLCollection.

HTMLFormControlsCollection.namedItem()
Returns the RadioNodeList or the Element in the collection whose name or id matches the specified name, or null if no nodes match. Note that this version of namedItem() hide the one inherited from HTMLCollection. Like that one, in JavaScript, using the array bracket syntax with a String, like collection["value"] is equivalent to collection.namedItem("value").

Specifications

Specification Status Comment
HTML Living StandardThe definition of 'HTMLFormControlsCollection' in that specification. Living Standard No change since the last snapshot, HTML5.
HTML5The definition of 'HTMLFormControlsCollection' in that specification. Recommendation In this snapshot of HTML Living Standard, the HTMLFormControlsCollections is defined for the first time.

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
HTMLFormControlsCollection Chrome

Full support Yes

Edge

Full support 79

Firefox

Full support 27

IE

No support No

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 27

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

namedItem Chrome

Full support Yes

Edge

Full support 79

Firefox Full support 33


Full support 33


No support 27 — 33

Notes'

Notes' Returned a NodeList instead of a RadioNodeList.

IE

No support No

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android Full support 33


Full support 33


No support 27 — 33

Notes'

Notes' Returned a NodeList instead of a RadioNodeList.

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
No support  
No support
See implementation notes.'
See implementation notes.


See also