multiSwitch
A switch jQuery plugin without an initial option
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(); });