$("input[id$='selectAll']").click(function () {
$("INPUT[type='checkbox'][id*='chkbox']").attr("checked", $(this).is(":checked"));
});
Showing posts with label jQuery. Show all posts
Showing posts with label jQuery. Show all posts
2011/12/14
Using jQuery to select/deselect all
Using jQuery to select/deselect all with just 3 lines of code
Subscribe to:
Posts (Atom)