, JSON JavaScript, , .
- , /cache/drop_down.state1.js .., . Rails /public, JavaScript, . .
You can do this for each drop-down list independently or, if it’s practically possible, all the drop-down lists at the same time, and then turn it on and select the corresponding key from the list.
This requires the creation of a client side script to dynamically create and populate a secondary drop-down field, including selecting the appropriate record if you need to pre-select it. However, this is not so difficult with a helper library such as jQuery.
source
share