<script type="text/javascript">
function toggleSelectionUsingHeaderCheckBox() {
$("input[name$='chkMain']").each(function () {
// get all child checkbox
var subCheckbox = $(this).parent().parent().next().find("td").find("table").find("tr").find("td").find("input[name$='chkSub']");
subCheckbox.prop('checked', $(this).prop('checked'));
});
}
</script>
function toggleSelectionUsingHeaderCheckBox() {
$("input[name$='chkMain']").each(function () {
// get all child checkbox
var subCheckbox = $(this).parent().parent().next().find("td").find("table").find("tr").find("td").find("input[name$='chkSub']");
subCheckbox.prop('checked', $(this).prop('checked'));
});
}
</script>
No comments:
Post a Comment