I have a list of color names with check boxes. Instead of having the check boxes be there, I would like to be able to select the entire div with the title in it. Checked div's would be understood with a different background color.
my html is also and erb file and contains ruby. I want the <%= color.name %> to be inside the "idea[color_ids][]" id div. but when I try putting them inside each other I get a rails error
html/erb file
<ul class="multi-column-checkbox">
<% for color in Color.master_colors %>
<li><%= check_box_tag "idea[color_ids][]", color.id,
@idea.colors.include?(color) %> <%= color.name %></li>
<% end %>
</ul>
how can I get color.names inside the "idea[color_ids][]" div instead of just inside the li div? so that I can select the entire "idea[color_ids][]" (with color name title inside)?