Skip to content

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

License

Notifications You must be signed in to change notification settings

jasonni/jquery-rangeselector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published