select_all

I tried to add "select all" button to check box.

HTML

select all<%= check_box_tag "select_all", "select_all", nil, :onclick=>'hoge();' -%>

JavaScript for test.


but window does not open when checked select all check box.

error message;

select_all is not a function.

after changed function "select_all" to "hoge" then successed!