Skip to content

Instantly share code, notes, and snippets.

@mrnugget
Created February 11, 2012 18:07
Show Gist options
  • Save mrnugget/1803353 to your computer and use it in GitHub Desktop.
Save mrnugget/1803353 to your computer and use it in GitHub Desktop.
$("#check-all").change(function() {
var label = $('label[for="check-all"]');
var text = label.text() == "Check all" ? "Uncheck all" : "Check all";
label.text = text;
this.checked = !this.checked;
toggleCheckboxes();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment