Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Select and Dselect
// add multiple select / deselect functionality
$("#selectall").click(function () {
$('.case').attr('checked', this.checked);
// if all checkbox are selected, check the selectall checkbox
// and viceversa
if($(".case").length == $(".case:checked").length) {
$("#selectall").attr("checked", "checked");
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment