I need to group the checkboxes and put some spacing between each group. They need to look like this:



I can easily add an additional field to the options array specifying which group each item belongs to but I how do I render them this way? I imagine I would have to do this by adding classes. But how do I do that?


You can normally do this already without any extra effort.

Each option should have a class assigned to it that you can target in your CSS.

You can then apply any spacing you like there.

  • @Gurdian How do I apply classes to individual checkbox elements based on what group it belongs in? – Rayhan Muktader Feb 25 '15 at 18:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.