my dog learned polymorphism*
The moose likes Struts and the fly likes Ajax call to update the drop down list on selecting other select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ajax call to update the drop down list on selecting other select" Watch "Ajax call to update the drop down list on selecting other select" New topic
Author

Ajax call to update the drop down list on selecting other select

chaitanya sri
Greenhorn

Joined: Jan 25, 2012
Posts: 3
Hi,

I need some directions on making a ajax call on selecting an option from one select box so that the other select box options should be updated according to the option selected.

Example:

If i select "A" in one select box. The other select box should have Names starting with "A".

Please give me some reference or directions in doing this. Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60741
    
  65

Assuming you will use jQuery (highly recommended over doing it "by hand") download the free example code for my book.. The code for chapter 8 has examples for cascading drop downs.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax call to update the drop down list on selecting other select
 
Similar Threads
Validating Mutiple fields in the list Box
List box
Java Script Drop-down option deletion but little bit different
Select box get refresh after populating the data into a table.
How to display Ajax result on the same jsp page