I have my Ajax working, builtin Rails javascript, with the submit button. However, I would like it to submit when I change the value of the dropdown box and eliminate the b
Depending on the js library you are using:
Prototype: :onchange => ("$('switch_car').submit()")
:onchange => ("$('switch_car').submit()")
Jquery: :onchange => ("$('#switch_car').submit()")
:onchange => ("$('#switch_car').submit()")
If you are using the defaults and your rails version is below 3.1, then prototype is the default library.