我有一个select_tag,它在更改时使用onchange调用javascript方法。如何将所选选项从select_tag发送到onchange javascript函数
我想在select_tag中选择的选项的值作为参数发送给方法。
<%= link_to_function select_tag :search_type, options_for_select(search_type_options, @search_type), :onchange => "showSearchables(**the option selected **);return false;" %>
完美,谢谢:) – Njall 2012-02-06 20:54:56