add

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

The HTMLSelectElement.add() method adds an element to the collection of option elements for this select element.

MDN Reference


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