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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
elemente | elemente | The element wrapper receiver. |
boleng (optional) | mokwalo | Option value; omit to read. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaTlhopho();
tlaleletsaTlhopho(e, "Pududu", "blue");
tlhophoYaElemente(e, "blue");
bopaTemana(tlhophoYaElemente(e));
}