Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created May 13, 2010 08:32
Show Gist options
  • Save hsbt/399625 to your computer and use it in GitHub Desktop.
Save hsbt/399625 to your computer and use it in GitHub Desktop.
Array.forEach( $$(".foo")[0].getElementsByTagName("input"), function(e){ if(e.type=="checkbox") e.checked=true; } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment