my dog learned polymorphism*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in drop down box" Watch "Problem in drop down box" New topic

Problem in drop down box

Rishabh Rathi

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
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.

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