hello all.
i am trying to set few index's in my multiple select,
i can get the index out of there but it looks like i cant set it
please advice
snippet:
[CODE=javascript]
var sel = document.getEle mentById('selec t_multi');
for(i=0;i<sel.l ength;i++){
if(id[i] == id_xml[sel.options[i].value])
sel.selectedInd ex = i;
[/CODE]
i want to highlight few items in that select box; this code only higlight the last one :(
doesn't make seance
thanks
i am trying to set few index's in my multiple select,
i can get the index out of there but it looks like i cant set it
please advice
snippet:
[CODE=javascript]
var sel = document.getEle mentById('selec t_multi');
for(i=0;i<sel.l ength;i++){
if(id[i] == id_xml[sel.options[i].value])
sel.selectedInd ex = i;
[/CODE]
i want to highlight few items in that select box; this code only higlight the last one :(
doesn't make seance
thanks
Comment