Created
October 16, 2016 21:43
-
-
Save pingyen/03f28214ea0ca5375fe3f020d54fb0a5 to your computer and use it in GitHub Desktop.
Check all checkboxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.from(document.querySelectorAll('input[type=checkbox]')).forEach(function(checkbox) { checkbox.checked = true; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment