On
$('body').on("click","#hcb", function () {
$("input[name='cb']").attr("checked", this.checked);
});
Delegate
$(document).delegate("#ishcb", "click", function () {
$("input[name='iscb']").attr("checked", this.checked);
});
$('body').on("click","#hcb", function () {
$("input[name='cb']").attr("checked", this.checked);
});
Delegate
$(document).delegate("#ishcb", "click", function () {
$("input[name='iscb']").attr("checked", this.checked);
});
No comments:
Post a Comment