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 # htmlformcontrolscollection |
Browser compatibility
BCD tables only load in the browser