Client-side method which gets the text of an option based on its index:
function getOptionTextByIndex (iIndex) {
var j=0;
for(var i in cbo1.o_K) {
if(cbo1.o_K[i] == iIndex) {
break;
}
j++;
}
var iRealIndex = j;
j=0;
for(var i in cbo1.o_m) {
if(j == iRealIndex) {
return cbo1.o_m[i];
}
j++;
}
}
|