• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to hide the option in dropdown,which has been selected in the previous drop down

 
rakesh shetty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 4 dropdowns,in which i am populating the city names.For ex: Delhi,Mumbai,Bangalore.
Suppose if i select Delhi in first dropdown,it should not displayed in rest of 3 drop downs.How i have to solve this in jsp.

Thanks



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JavaScript to remove selected options in the remaining dropdowns?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rakesh shetty wrote:i have to solve this in jsp.

JSP will be of no help. This is something that must be accomplished with JavaScript. Unless, of course, you want to refresh the entire page page every time someone makes a choice (hint: you do not want to do that).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic