▣ Script
function fn_allCheckBox() {
if ($("#chkAllObjPop").is(":checked")) {
$("input[name=chkObjPop]").attr("checked", true);
} else {
$("input[name=chkObjPop]").attr("checked", false);
}
}
▣ HTML
<input type="checkbox" id="chkAllObjPop" onClick="fn_allCheckBox();" />
<input type="checkbox" name="chkObjPop" vaue="1" />
<input type="checkbox" name="chkObjPop" vaue="2" />
<input type="checkbox" name="chkObjPop" vaue="3" />