GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes How to hide the option in dropdown,which has been selected in the previous  drop down 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 "How to hide the option in dropdown,which has been selected in the previous  drop down" Watch "How to hide the option in dropdown,which has been selected in the previous  drop down" New topic
Author

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

rakesh shetty
Greenhorn

Joined: Jan 20, 2009
Posts: 2
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

Joined: Sep 29, 2008
Posts: 12617

Use JavaScript to remove selected options in the remaining dropdowns?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61309
    
  66

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to hide the option in dropdown,which has been selected in the previous drop down