Toggle switches can be used as an alternative to check boxes for boolean or binomial input. Toggle switches are implemented using the excellent Bootstrap Switch project.
For example code and an explanation of options see Gizmo Options Object API for Toggle Switch.