index of the option with specified ID
$$("tabbar").optionIndex(1);
Since options are stored in the array, option indexes are numbered staring from 0.