Getting the Selected Index from a combo with multiple select
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Arun_K
Posted On:   Tuesday, June 18, 2002 01:39 AM

Is it possible to get the seleted index of all selections from combo box which has multiple select.


For Example:






If I select option1 and option3 from this combo box, is it possible to get the selected index of both the options selected.




Thanks,



Arun

Re: Getting the Selected Index from a combo with multiple select

Posted By:   Firat_Tiryaki  
Posted On:   Thursday, June 20, 2002 12:35 AM

use a loop



for (i=0;i {
if (document.form1.s1.options[i].selected==true)
alert(i+" is selected");
}
About | Sitemap | Contact