Skip to content

Instantly share code, notes, and snippets.

@amalmurali47
Forked from nathansmith/check_all.js
Created June 15, 2013 15:41
Show Gist options
  • Save amalmurali47/5788514 to your computer and use it in GitHub Desktop.
Save amalmurali47/5788514 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