Topic: suggestion for a select all checkbox ?
hello there,
i have a bunch of checkboxes that i would like to incorporate a select all button for.
the code looks like this:
<% @sites.each do |site| %>
<tr>
<td> <%= check_box_tag "site_ids[]", site.id %> </td>
<td> <%= site.site_name %> </td>
</tr>
<% end %>
i have tried a couple of javascript examples out there, but i think they are getting hung up on the site_ids[] part of the checkbox id.
is anyone out there doing something similar ?
thanks