css - Simple form give checkboxes a class -
this code
<%= simple_form_for [current_employee, @preference] |f|%> <%= f.association :jobterms, as: :check_boxes, label: false%> <% end %>
it generates html
<span class="checkbox"> <label for="preference_jobterm_ids_1"> <input class="check_boxes optional" type="checkbox" value="1" name="preference[jobterm_ids][]" id="preference_jobterm_ids_1"> "employee" </label> </span>
is possible give "employee" generated text surrounding class?
i'm trying make checkbox button , accessing text label affect styling of border.
Comments
Post a Comment