Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Please help me with Javascript validation of multiple <select> lists.


Message #1 by "alex" <alexo@c...> on Tue, 26 Feb 2002 05:06:07
Thanks for that, however the example on the page you suggested caters only 
for 2 selects which is easy to do. Where things start to get tricky is 
when you have more than 2 <select>s. Any suggestions?
Thanks.
Alex.


> Hi Alex,
> 
>    Please Check out the following URL. Hope it helps..
> 
> 		http://javascript.internet.com/forms/no-duplicates.html
> 
> Regards,
> Shankar
> 
> 
> -----Original Message-----
> From: alex [mailto:alexo@c...]
> Sent: Tuesday, February 26, 2002 5:06 AM
> To: JavaScript HowTo
> Subject: [javascript_howto] Please help me with Javascript validation of
> multiple <select> lists.
> 
> 
> Hi everyone!
> I have this little page I'm working on and I need some help with
> Javascript. On my page I have 11 <select> lists called
> drop1,drop2,...,drop11
> Each of these <select> lists has 5 <option> values ie.
> 
>  <select name="drop1">
>     <option value=""> </option>
>     <option value="1"> 1 </option>
>     <option value="2"> 2 </option>
>     <option value="3"> 3 </option>
>     <option value="4"> 4 </option>
>     <option value="5"> 5 </option>
>  </select>
> 
> 
> I would like to ensure than user can only 1 unique <option> from any of
> the 11 <select> lists. So if I select 1 from drop2 I should not be able 
to
> select option 1 from any other list. I hope this makes sense and thanks 
in
> advance to anyone who can help me out.
> 
> $subst('Email.Unsub').
> 

  Return to Index