HTMLOptionsCollection
The HTMLOptionsCollection
interface represents a collection of <option>
HTML elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.
Properties
Functions
Link copied to clipboard
The add()
method of the HTMLOptionsCollection interface adds an HTMLOptionElement or HTMLOptGroupElement to this HTMLOptionsCollection
.
Link copied to clipboard
Link copied to clipboard
The HTMLCollection method item()
returns the element located at the specified offset into the collection.
Link copied to clipboard
The namedItem()
method of the HTMLCollection interface returns the first Element in the collection whose id
or name
attribute match the specified name, or null
if no element matches.