optionIndex

index of the option with specified ID

number optionIndex(id ID);

Parameters

IDidID of the needed option

Returns

numberindex of the option

Example

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

Details

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

Back to top