prince
06-08-2004, 05:25 PM
Multiple dropdown lists.
Hi All,
I have to write a javascript validation code for 10 drop down lists with options from 1,2,3... upto 10. On selecting any of the options from any of the list . It should not allow the same option to be selected in the rest of the lists. Like wise it should continoue for the rest of the options.
Example : I have following options in each of my 10 dropdown lists
<option None>-Select-</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
-------
------
------
<option value=10>10</option>
Now for List1 say i choose option value =1 so this shoulnot be available for rest of the list and on clicking the same number in others lists say list2 i should get an alert the number is already selected choose another one.
Please advise.
Thanks
sunny
Hi All,
I have to write a javascript validation code for 10 drop down lists with options from 1,2,3... upto 10. On selecting any of the options from any of the list . It should not allow the same option to be selected in the rest of the lists. Like wise it should continoue for the rest of the options.
Example : I have following options in each of my 10 dropdown lists
<option None>-Select-</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
-------
------
------
<option value=10>10</option>
Now for List1 say i choose option value =1 so this shoulnot be available for rest of the list and on clicking the same number in others lists say list2 i should get an alert the number is already selected choose another one.
Please advise.
Thanks
sunny