File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Problem in drop down box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in drop down box" Watch "Problem in drop down box" New topic
Author

Problem in drop down box

Rishabh Rathi
Greenhorn

Joined: Mar 07, 2011
Posts: 13
Hello friends,
I have a problem in my javascript code.
I am using 4 drop down box with four entries.I want that the entry selected in first drop down box should not be repeated
in any other drop down menu.Please help me out
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
Hi,
Using jQuery or any other JavaScript library you can remove that particular element selected in the first dropdown.
1) Firstly give Ids to the dropdowns
2) On selection of the item of the first dropdown get hold of other dropdowns and remove that element.

Regards,
Amit
 
wood burning stoves
 
subject: Problem in drop down box
 
Similar Threads
disable one of the option
add or remove an item from drop down
Passing variable value from javascript to jsp page at run time
Combo Box search as user types
servlet+html