Created
July 27, 2014 13:26
-
-
Save SAFAD/96a17c4e13e822c3bbf9 to your computer and use it in GitHub Desktop.
tick all checkboxes
This file contains hidden or 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
var inputs = document.querySelectorAll("input[type='checkbox']"); | |
for(var i = 0; i < inputs.length; i++) { | |
inputs[i].checked = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment