Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in drop down box

 
Rishabh Rathi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic