Tag Archives: states

Onchange Event Fired from Select Field in Rails Form

In the view there is a regular Rails form and a javascript function that will be triggered when the country select field is changed. The javascript function will make an ajax request to the country_select url with the country code passed as the id variable, e.g., /country_code/us for the United States. I’m also using the [...]
Posted in Ruby on Rails, javascript | Also tagged , , , , , | Leave a comment