Created
September 19, 2016 05:51
-
-
Save punkmonday/1eceac5e7235ca1fc900df6a9845ece8 to your computer and use it in GitHub Desktop.
select all check box
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 toggleCheckImage(source) { | |
checkboxes = document.getElementsByClassName("imagecheckbox"); | |
for (var i = 0, n = checkboxes.length; i < n; i++) { | |
checkboxes[i].checked = source.checked; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment