Skip to content

Instantly share code, notes, and snippets.

@roolo
Created September 27, 2011 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roolo/1243974 to your computer and use it in GitHub Desktop.
Save roolo/1243974 to your computer and use it in GitHub Desktop.
Checks all checkboxes on page
inputs = document.getElementsByTagName('input');for(i = 0; i < inputs.length; i++){ if(inputs[i].type == 'checkbox'){inputs[i].checked = true;}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment