CheckboxGroup
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://plugins.jquery.com/project/checkgroup
软件介绍
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'>