HTMLFormControlsCollection

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
HTMLFormControlsCollection
25
79
27
No
15
7
≤37
25
27
14
7
1.5
namedItem
25
79
33
27-33
Returned a NodeList instead of a RadioNodeList.
No
15
7
≤37
25
33
27-33
Returned a NodeList instead of a RadioNodeList.
14
7
1.5

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection