File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 60053
    
  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]
 
 
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
How to change the drop down arrow icon
sbmission of form through javascript
Dropdown problem