This is a discussion on "Forms - Preventing Multiple Choices from a drop down menu" within the Web Page Design section. This forum, and the thread "Forms - Preventing Multiple Choices from a drop down menu are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Forms - Preventing Multiple Choices from a drop down menu
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Forms - Preventing Multiple Choices from a drop down menu
Hey everybody hope you're well.
What I have in my form is 9 drop down menus with 24 options in each menu. Each of the drop down menus have the same 24 choices but I need to stop people choosing the same option twice or more. Here is my code...
|
|
#2
|
|||
|
|||
|
Re: Forms - Preventing Multiple Choices from a drop down menu
In your validation script (validate_form) that you call when the form is submitted, you just need to put a call to check each of the select boxes.
Also, it would be best not to start your select box names with a number, so if you call them "first", "second", "third"... etc then you could use the following javascript:
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple drop-down menus | ktsirig | JavaScript Forum | 2 | May 28th, 2008 23:54 |
| Multiple drop down menus | D4CUE | Web Page Design | 3 | Mar 6th, 2008 09:06 |
| Multiple forms on Opera | QuikFrozen | Web Page Design | 3 | Nov 7th, 2006 16:19 |
| Multiple Drop Down | stevoh | PHP Forum | 2 | Nov 25th, 2005 18:52 |
| Multiple Drop Down Validation | Monie | JavaScript Forum | 1 | Nov 6th, 2004 08:41 |