Problem With Drop Down LIst

Hi ,

i have two drop down list where the data of it retrieve from the DB
table. this one is working 100% .

bt now i want do some thin like this.
when the fist drop down list is selected the second one values should be
change according to that.

    * for example when the county is been selected according to that
country the States drop down list must be change.

If some one knows how to do this pls reply.


You can use an AJAX request to go to another page that will give you back some options for that other select box using an RJS request:

page.replace_html “other_select_box”, options_for_select(@options)