Multi Select Checkboxes Using A Custom Key - groupAndSelectChecks
| File Size: | 4.14KB |
|---|---|
| Views Total: | 684 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
groupAndSelectChecks is a jQuery plugin that allows you to select or deselect a range of checkboxes with a custom key. By default the plugin uses the shift key pressed for group selection but you can pass the keycode for the key you prefer.
Basic Usage:
1. Include jQuery library and groupAndSelectChecks.js in the header
<script src="HTTP://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript" src="groupSelectChecks.js"></script>
2. Markup
<div id="list1"> <input type="checkbox"/> <input type="checkbox"/> <input type="checkbox"/> <input type="checkbox"/> <input type="checkbox"/> <input type="checkbox"/> </div>
3. Call the plugin
<script type="text/javascript">
$(function(){
$('#list1').groupSelectChecks({
keyCode:18 // ALT KEY
});
});
</script>
Change Log:
v0.3.0 (2013-02-28)
- Update groupSelectChecks.js
This awesome jQuery plugin is developed by unknown. For more Advanced Usages, please check the demo page or visit the official website.











