Skip to content

Instantly share code, notes, and snippets.

@jcisio
Last active March 17, 2016 10:20
Show Gist options
  • Save jcisio/6ee54cbd00c41c99f222 to your computer and use it in GitHub Desktop.
Save jcisio/6ee54cbd00c41c99f222 to your computer and use it in GitHub Desktop.
Daily tools
// List checked checkboxes
(function () {
var checkboxes = document.querySelectorAll('[checked=checked]');
for (var i = 0; i < checkboxes.length; ++i) {
console.log(checkboxes[i].name);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment