wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 512
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
 
jQuery in Action, 2nd edition
 
subject: Problem in drop down box