Created
September 23, 2016 15:10
-
-
Save Drane/c5828a1ace8b9d331e384aee40ef6216 to your computer and use it in GitHub Desktop.
Javascript enable 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
var textinputs = document.querySelectorAll('input[type=checkbox]'); | |
textinputs.forEach(function(el){el.checked=true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment