namedItem method
The HTMLSelectElement.namedItem()
method returns the
HTMLOptionElement corresponding to the HTMLOptionElement
whose name
or id
match the specified name, or
null
if no option matches.
In JavaScript, using selectElt.namedItem('value')
is equivalent to
selectElt.options.namedItem('value')
.
Implementation
external HTMLOptionElement? namedItem(String name);