Our volunteers haven't translated this article into ไทย yet. Join us and help get the job done!
The HTMLFormControlsCollection
interface represents a collection of HTML form control elements. It replaces one method of HTMLCollection
.
This interface is used by the HTMLFormElement
interface's elements
property, and the HTMLFieldSetElement
interface's elements
property.
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
match 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 | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'HTMLFormControlsCollection' in that specification. |
Living Standard | No change since the last snapshot, HTML5. |
HTML5 The definition of 'HTMLFormControlsCollection' in that specification. |
Recommendation | In this snapshot of WHATWG HTML Living Standard, the HTMLFormControlsCollections is defined for the first time. |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | (Yes) | 27 (27) [1] | Not supported | (Yes) | ? |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | (Yes) | 27.0 (27) [1] | Not supported | (Yes) | ? |
[1] Until Firefox 32 included, the eventual RadioNodeList
returned by namedItem
was a NodeList
.