meruff / multiSwitch

A switch jQuery plugin with a initial null default option

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A switch jQuery plugin with a initial null default option


Languages

Language:JavaScript 52.2%Language:CSS 32.8%Language:HTML 15.1%