jQuery Plugin To Check All Checkboxes - checkAll.js
| File Size: | 4.4 KB |
|---|---|
| Views Total: | 3771 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
Yet another jQuery plugin which allows the visitor to check (or uncheck) all checkboxes in a form or specific scopes.
Basic Usage:
1. Make sure to include the jquery.checkAll.js after jQuery JavaScript library.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script src="jquery.checkAll.js"></script>
2. Create a 'checkall' checkbox.
<input class="check-all" type="checkbox" name="" id="">
3. Select closest form element as scope.
$('.check-all').checkAll();
4. Select specific scopes to check All.
$('.check-all').checkAll({
scope: $('.group-a')
});
5. Callbacks.
$('.check-all').checkAll({
onMasterClick: null,
onScopeChange: null
});
Change log:
2015-02-26
- Fixing return void to support IE8+
This awesome jQuery plugin is developed by SecretBase. For more Advanced Usages, please check the demo page or visit the official website.











