Skip to content
ExamplesOpen editor ↗

tlhophoYaElemente

Reads or sets the selected option.

tlhophoYaElemente(elemente, [boleng])

Select getter returns a string (array for multiple select), setter selects matching value. Radio getter/setter returns the checked native HTMLInputElement or null; use bolengJwaElemente for the radio value. Preserve native control-specific return values.

NameTypeDescription
elementeelementeThe element wrapper receiver.
boleng (optional)mokwaloOption value; omit to read.
Reads or sets the selected option.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaTlhopho();
  tlaleletsaTlhopho(e, "Pududu", "blue");
  tlhophoYaElemente(e, "blue");
  bopaTemana(tlhophoYaElemente(e));
}

bopaTemana, dirisaMoGo