Skip to content

Instantly share code, notes, and snippets.

@beejereeno
Forked from nathansmith/check_all.js
Created June 15, 2014 22:14
Show Gist options
  • Save beejereeno/ddd47488b672b8a194d1 to your computer and use it in GitHub Desktop.
Save beejereeno/ddd47488b672b8a194d1 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.querySelectorAll('input[type="checkbox"]');
var i = input.length;
while (i--) {
input[i].checked = true;
}
// Gets around "all" restriction, if site
// in question won't let you submit all.
input[0].checked = false;
})(this.document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment