Skip to content

Instantly share code, notes, and snippets.

@carloscabo
Forked from nathansmith/check_all.js
Created April 8, 2013 21:39
Show Gist options
  • Save carloscabo/5340743 to your computer and use it in GitHub Desktop.
Save carloscabo/5340743 to your computer and use it in GitHub Desktop.
// Paste into Firebug or Chrome Dev Tools console
// when viewing a page with multiple checkboxes.
(function(d) {
var input = d.getElementsByTagName('input');
var i = input.length;
while (i--) {
if (input[i].type === 'checkbox') {
input[i].setAttribute('checked', 'checked');
}
}
})(this.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment