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 theElement
in the collection whosename
orid
matches the specified name, ornull
if no nodes match. Note that this version ofnamedItem()
hide the one inherited fromHTMLCollection
. Like that one, in JavaScript, using the array bracket syntax with aString
, likecollection["value"]
is equivalent tocollection.namedItem("value")
.
Specifications
Specification |
---|
HTML Standard (HTML) # htmlformcontrolscollection |
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