optionIndex of HTMLOptions, Methods Webix Docs

StartAPI ReferenceMixinsHTMLOptionsMethods

index of the option with specified ID

number optionIndex(id ID);

ID

idID of the needed option
numberindex of the option

Example

$$("segmented1").optionIndex(1);

Details

Since options are stored in the array, option indexes are numbered staring from 0.

Back to top