Simple jQuery Plugin To Select All The Checkboxes - select-all

File Size: 3.61KB
Views Total: 1075
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simple jQuery Plugin To Select All The Checkboxes - select-all

select-all is a lightweight and fast jQuery plugin that provides an additional checkbox to select / unselect all the checkboxes in the list.

You might also like:

Basic Usage:

1. Create a checkbox to select / unselect all the other checkboxes

<input type="checkbox" id="selectall" value="sel-all"/>

2. Create the checkboxes you want to select / unselect all on one click

<input type="checkbox" class="case" name="case" value="1"/>
<input type="checkbox" class="case" name="case" value="2"/>
<input type="checkbox" class="case" name="case" value="3"/>

3. Include jQuery library and jQuery select-all plugin on the page

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.select-all.min.js"></script>

4. Call the plugin

<script type="text/javascript">
$(document).ready(function() {
$.selectall('#selectall', '.case');
});
</script>

This awesome jQuery plugin is developed by manikandanm. For more Advanced Usages, please check the demo page or visit the official website.