Created
January 18, 2011 17:02
-
-
Save bijayrungta/784751 to your computer and use it in GitHub Desktop.
Check all Checkboxes in a Web page.
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
a = document.getElementsByTagName('input'); | |
for (i=0;i<a.length;i++) { | |
if (a[i].type == 'checkbox') { | |
a[i].checked = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment