Created
September 11, 2018 10:32
-
-
Save meajinkya/128eb2c6c24aec1b09376ca89566f3fe to your computer and use it in GitHub Desktop.
All Checkboxes Selector
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
(function() { | |
var allCheckboxes = document.querySelectorAll("input[type=checkbox]"); | |
Array.from(allCheckboxes).forEach( | |
function(thisCheckbox) { | |
thisCheckbox.checked = true; | |
} | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment