Last active
December 11, 2015 20:09
-
-
Save beacrea/4653360 to your computer and use it in GitHub Desktop.
A way to go through a list of items and mark all items.
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 check = document.querySelectorAll('[type="checkbox"]'); | |
var i = check.length; | |
while(i--){ | |
if(check[i].disabled == true) continue; | |
check[i].checked = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment