This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Combo Box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Combo Box" Watch "Combo Box" New topic
Author

Combo Box

Gaurav x Jain
Ranch Hand

Joined: Feb 01, 2011
Posts: 39
Hi Friends

I want to add data in combo box in my JSP page as per selection done in another combo box. For example:

1st combo box Country
2nd combo box languages

when I select country in first combo box it will load related languages (one or many) in second combo box.

Please help
Mahendra Suda
Greenhorn

Joined: Apr 22, 2011
Posts: 18
Hi,

You can use the Ajax for your requirement, there is lot of library available for ajax.

you can refer ajax jsp tag library also.

see the 'Select' example in this page http://ajaxtags.sourceforge.net/usage.html.


http://www.java-connect.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

First, please use correct terminology... there's no such thing as a "combo box" in HTML. Please read HtmlHasNoComboBox

Second, this is nothing you would do with Servlets, or even JSP. It needs JavaScript and Ajax as already noted. SO this has been moved to the HTML forum where you will find that this discussion has already taken place many times. Please SearchFirst.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Combo Box
 
Similar Threads
combo boxes and iterator
Dependent Drop-down Combo boxes
Separator in combo box
ItemStateChanged Event
setting default value for a combobox