I want to do something similar to what www.tirerack.com has. Where the options of one select statement depend on the selected option of another select statement.
I have my select statement firing an onChange event that calls the server to get the data. However, I'm having a bit of trouble trying to figure out how to put that data into the second select statement.
What way do y'all suggest I pass the data from the javaservlet and populate the select statement with it?
Bear Bibeault wrote:I just use a JSP on the server to format the <option> elements, and plunk them into the select element using .load().
Interesting. I ended up with a somewhat similar solution. I used .get with a callback which did an .html on the select to load the options. But I think I like the .load solution better.