This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60798
    
  65

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
 
Similar Threads
how to populate dropdown box dynamically
dropdown selection in Struts2
sbmission of form through javascript
How to change the drop down arrow icon
Dropdown problem