cbFamily
Checkbox group (parent/children) functionality
demo
Source
<section>
<h3><label><input type="checkbox" /> Parent 1</label></h3>
<div class="children">
<label><input type="checkbox" /> Child 1-1</label>
<label><input type="checkbox" /> Child 1-2</label>
<label><input type="checkbox" /> Child 1-3</label>
</div>
</section>
<section>
<h3><label><input type="checkbox" /> Parent 2</label></h3>
<div class="children">
<label><input type="checkbox" checked="checked" /> Child 2-1</label>
<label><input type="checkbox" checked="checked" /> Child 2-2</label>
<label><input type="checkbox" checked="checked" /> Child 2-3</label>
</div>
</section>
<script type="text/javascript">
$("h3 input:checkbox").cbFamily(function (){
return $(this).parents("h3").next().find("input:checkbox");
});
</script>