namedItem
Description
The namedItem of HTMLFormControlsCollection for JS returns the first element with ID or name name from the collection.
If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
Syntax
element = collection.namedItem(name) radioNodeList = collection.namedItem(name) element = collection[name] radioNodeList = collection[name]
Parameters
name
A non-empty string.