Skip to content
ExamplesOpen editor ↗

tlhophaElemente

→ select()

Finds the first matching element.

tlhophaElemente(CSS, [setshodi])

Returns element wrapper or null. Selectors use ordinary CSS syntax. An optional container limits the search.

NameTypeDescription
CSSmokwaloCSS selector.
setshodi (optional)`mokwaloelemente`
Finds the first matching element.
tiro setaLoeto() {
  tlosaKanefase();
  diri e = bopaTemana("Dumela");
  nonofoYaElemente(e, "id", "mola");
  setaeleSaElemente(tlhophaElemente("#mola"), "color", "teal");
}

bopaTemana, dirisaMoGo