Checkboxes

Purpose

Like radio buttons, check boxes are used in groups. Selecting a checkbox is not mutually exclusive, and multiple checkboxes can be selected.

Example

Screen Shot 2018 05 17 At 15 14 48

Description

In some cases changing the state of the checkbox should submit the surrounding form (implemented using `$(this).trigger('submit.rails')` ). To enable immediate submit on change, add the class `.js-immediate-submit` to the `.a-toggle-checkbox` element.

To manipulate the value of checkboxes on the change event and toggle between 1 and 0 (which is the default for a single Rails checkbox), add the class .js-manipulate-value.