Skip to content
ExamplesOpen editor ↗

bopaRadio

→ createRadio()

Creates a radio group.

bopaRadio([leina], [leinaLaSetlhopha])

Returns a native element wrapper. Use the receiver helpers to read or update it. Radio option(value, label) reverses select’s argument order. selected() returns the checked native HTMLInputElement; bolengJwaElemente returns its string value.

NameTypeDescription
leina (optional)`mokwaloelemente`
leinaLaSetlhopha (optional)mokwaloGroup name when the first argument is an existing container.
Creates a radio group.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaRadio();
  tlaleletsaTlhopho(e, "blue", "Pududu");
  tlaleletsaTlhopho(e, "red", "Bohibidu");
  tlhophoYaElemente(e, "blue");
}

bopaTemana, dirisaMoGo