How do I add an onchange event here?
Framework: rails Database: MySQL
I am populating the options from the database and that made me use options_from_collection_for_select
options_from_collection_for_select
select_tag(:variable,options_from_collection_for_select(:all, :id, :name))