add

fun add(element: HTMLOptionElement, before: HTMLElement? = definedExternally)(source)

The add() method of the HTMLOptionsCollection interface adds an HTMLOptionElement or HTMLOptGroupElement to this HTMLOptionsCollection.

MDN Reference


fun add(element: HTMLOptionElement, before: Int?)(source)
fun add(element: HTMLOptGroupElement, before: HTMLElement? = definedExternally)(source)
fun add(element: HTMLOptGroupElement, before: Int?)(source)