Skip to content
A switch jQuery plugin with a initial null default option
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images Added files via upload Apr 15, 2016
src Added files via upload Apr 15, 2016
README.md Update README.md Apr 18, 2016
index.html Update index.html Apr 18, 2016
multi-switch.min.css Added files via upload Apr 15, 2016
multi-switch.min.css.map Added files via upload Apr 15, 2016
styles.css Added files via upload Apr 15, 2016

README.md

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 can’t perform that action at this time.