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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 61654
    
  67

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]
 
wood burning stoves
 
subject: Ajax call to update the drop down list on selecting other select