$("input[id$='selectAll']").click(function () {
$("INPUT[type='checkbox'][id*='chkbox']").attr("checked", $(this).is(":checked"));
});
2011/12/14
Using jQuery to select/deselect all
Using jQuery to select/deselect all with just 3 lines of code
0 comments:
Post a Comment