CheckboxGroup -


未知
跨平台
JavaScript

软件简介

Provide “select all” checkbox functionality to a group of checkboxes. The
select all checkbox stays in sync with the group so it is appropriately
checked when it needs to be.

Example:

$('#checkall').checkgroup({groupName:'group'});

Also can have multiple select all boxes to one group - for instance one on top
of the group and one on bottom:

$('.checkall').checkgroup({groupSelector:'.groupclass',enabledOnly:true});

The HTML would look like this:

<input type='checkbox' class='checkall'>checkall<br> <input class='groupclass' name='group' type='checkbox'>chk1<br> <input class='groupclass' name='group' type='checkbox'>chk2<br> <input class='groupclass' name='group' type='checkbox'>chk3<br> <input class='groupclass' name='group' type='checkbox'>chk4<br> <input type='checkbox' class='checkall'>