W3cubDocs

/Haxe JavaScript

HTMLOptionsCollection

package js.html

extends HTMLCollection

Available on js

HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select.

Documentation HTMLOptionsCollection by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

selectedIndex:Int

Methods

add(element:EitherType<OptionElement, OptGroupElement>, ?before:EitherType<Element, Int>):Void

Throws:

null

DOMError

remove(index:Int):Void

Throws:

null

DOMError

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/HTMLOptionsCollection.html