Advertisement
brandizzi

Selecting/marking/checking all checkboxes from a page

Oct 5th, 2011
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* The code below is a bookmarklet for selecting (mark/check) all checkboxes of a page - a very useful feature. You can just copy the line below and paste it in the address bar. Also, you can make a bookmark from it. */
  2. javascript:(function(){i=document.getElementsByTagName('input');for(k in i){j=i[k];if(j.type=="checkbox")j.checked=true}})();
  3.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement