Skip to content
ExamplesOpen editor ↗

bopaTlhopho

→ createSelect()

Creates a select control.

bopaTlhopho([dintsi])

Returns a native element wrapper. Use the receiver helpers to read or update it. option(label, value) adds or updates an option; selected() returns a string or, for a multiple select, an array.

NameTypeDescription
dintsi (optional)boammaaruriAllow multiple selection, or pass an existing select element.
Creates a select control.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaTlhopho();
  tlaleletsaTlhopho(e, "Pududu", "blue");
  tlaleletsaTlhopho(e, "Bohibidu", "red");
  tlhophoYaElemente(e, "red");
}

bopaTemana, dirisaMoGo