🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

multiSwitch is a jQuery plugin for generating iOS-style smooth toggle switches from native checkboxes that work with 3 check states: on, off and null.

Checkbox Switch Tri-state-Checkbox

Documentation

multiSwitch

A switch jQuery plugin without an initial option

demo

Demo: http://tcavalin.github.io/multiSwitch/

Installation

Include script after the jQuery library:

<script src="src/multi-switch.js"></script>

Basic usage

<input type="checkbox" class="multi-switch" value="0" /> 

With a initial null default option:

<input type="checkbox" class="multi-switch" initial-value="0" unchecked-value="2" checked-value="1" value="0" /> 

Disabled:

<input type="checkbox" class="multi-switch" value="0" disabled="disabled" /> 

jQuery

$(document).ready(function(){     $('.multi-switch').multiSwitch(); });

Authors

Tiago Cavalin

Rômulo Busatto


You May Also Like