aspose file tools
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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 56162
    
  13

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.

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