jasonni / jquery-rangeselector

A simple lightweight jQuery plugin for multi-select checkbox with shift key

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.rangeselector

A simple, fast lightweight jQuery plugin for multi-select checkbox with shift key.
Why fast ??
Because the id is the fastest selector we know it.

Demo Page

http://jasonni.github.io/rangeselector/

Installation

Include script after the jQuery library.

<script src="/path/to/jquery.rangeselector.js"></script>

Usage

view.html

checkbox must give prefix id + number

<form  id="foo">  
    <input id="range-select-1" type="checkbox">  
    <input id="range-select-2" type="checkbox">  
    ...  
</form>

view.js

// prefix is optional, the default value is 'range-select'  
var prefix = 'boo';  
$('#foo').rangeselector(prefix);  

Authors

Jason Ni

About

A simple lightweight jQuery plugin for multi-select checkbox with shift key

License:MIT License