A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection below:

HTMLOptionsCollection - Web APIs | MDN

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. This object is returned only by the options property of select.

HTMLCollection HTMLOptionsCollection Instance properties
HTMLOptionsCollection.length

Returns or sets the number of options in the collection.

HTMLOptionsCollection.selectedIndex

The index number of the first selected <option> element. The value -1 indicates no element is selected.

Instance methods

This interface inherits the methods of its parent, HTMLCollection.

HTMLOptionsCollection.add()

Appends an HTMLOptionElement or HTMLOptGroupElement element to the collection of option elements or adds it before a specified option.

HTMLOptionsCollection.remove()

Removes the element at the specified index from the options collection.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4