Skip to content

Instantly share code, notes, and snippets.

@lazymanc
Created November 3, 2009 17:24
Show Gist options
  • Save lazymanc/225247 to your computer and use it in GitHub Desktop.
Save lazymanc/225247 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$("#checkAll").click(function(){
$('input[type=checkbox]').each(function(){
$(this).attr('checked', true);
});
return false;
});
});
$(document).ready(function(){
$("#checkNone").click(function(){
$('input[type=checkbox]').each(function(){
$(this).attr('checked', false);
});
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment