jQuery Checkall - A Checkbox Checker
Options
all: '.checkall__all' // Checkbox responsible to check all of a group. item: '.checkall__item' // Checkboxes in the group.
Usage
<script src="jquery.checkall.js"></script> <div class="check"> <input type="checkbox" class="checkall__all"> <input type="checkbox" class="checkall__item"> <input type="checkbox" class="checkall__item"> </div>
$('.checkall').checkall();