Skip to content

Instantly share code, notes, and snippets.

@thadd
Created November 18, 2009 21:36
Show Gist options
  • Save thadd/238288 to your computer and use it in GitHub Desktop.
Save thadd/238288 to your computer and use it in GitHub Desktop.
JQuery: How to select/deselect all checkboxes
$(function() {
$('#select_all_check').click(function(){
$('input:checkbox').attr('checked', $(this).attr('checked'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment