forms - Rails 3 select and onchange without Ajax -
i struggling whole day idea, how build simple form contains select item. select item contains 3 or 4 static values.
i don't know, how make form -- need after select item select offer form sent controller action.
i tried search , reading lot of articles, unfortunately can't find working solution... don't need ajax, basic functionality.
i ask help, how simple form... thank you, m.
add onclick handler select calls method submits form.
use method create select:
collection_select(method, collection, value_method, text_method, options = {}, html_options = {})
in html_options hash put in :onclick => "some_javascript_method()"
in javascript method have submit form. suggest using jquery form element call submit on.
Comments
Post a Comment