jQuery checkbox select all
You can simple use
$('input[name=cbAll]').change(function(){
$("input[name^=cbAction]").attr('checked', $(this).attr('checked'));
});
full sample
<html>
<head>
<title>Jquery Checkbox Select All</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('input[name=cbAll]').change(function(){
$("input[name^=cbAction]").attr('checked', $(this).attr('checked'));
});
});
</script>
</head>
<body>
<input type="checkbox" name="cbAll" id="cbAll" /><label for="cbAll">Select All</label>
<hr>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 1<br/>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 2<br/>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 3<br/>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 4<br/>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 5<br/>
<input type="checkbox" name="cbAction[]" value="on" /> checkbox 6<br/>
</body>
</html>

tesr