Displaying 1 result from an estimated 1 matches for "user_12_checked".
2006 Feb 05
1
Check/uncheck all checkboxes
Hello!
I have this page where I list all users in a table. There is checkbox in
every row. My User-model has a "checked"-attribute.
I have implemented the checkboxes like this:
<%= check_box("user[]", "checked") %>
Which outputs this:
<input id="user_12_checked" name="user[12][checked]" type="checkbox"
value="1" /><input name="user[12][checked]" type="hidden" value="0" />
How can i check/uncheck all checkboxes in one click? Do I have to use
javascript and have onClick()-event?
--...