Skip to content
ExamplesOpen editor ↗

tlaleletsaTlhopho

Adds or updates a control option.

tlaleletsaTlhopho(elemente, leinaKgotsaBoleng, [bolengKgotsaLeina])

Select takes (label, value), defaulting value to label; passing false as value removes that label. Radio takes (value, label), defaulting label to value, and returns the native input. These methods are attached to control instances in the bundled runtime, not the Element prototype.

NameTypeDescription
elementeelementeThe element wrapper receiver.
leinaKgotsaBolengmokwaloSelect label or radio value.
bolengKgotsaLeina (optional)`mokwalomaaka`
Adds or updates a control option.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaTlhopho();
  tlaleletsaTlhopho(e, "Pududu", "blue");
}

bopaTemana, dirisaMoGo