optionIndex

index of the option with specified ID

number optionIndex(id ID);
IDidID 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