Select-all checkboxes for a
Posted
by Horace Ho
on Stack Overflow
See other posts from Stack Overflow
or by Horace Ho
Published on 2010-06-13T05:13:21Z
Indexed on
2010/06/13
5:22 UTC
Read the original article
Hit count: 230
In a form_tag
, there is a list of 10 to 15 checkboxes:
<%= check_box_tag 'vehicles[]', car.id %>
How can I select-all (put a tick in every single) checkboxes by RJS? Thanks
© Stack Overflow or respective owner