Javascript : check all the checkboxes in the page
Hello there,
Its been a While since my last Post, and am not gonna be sorry about that, Because I was busy being in and preparing for Hong Kong baby ! wooohoooo
So, you are someone who wants to spam his friends via mail so the sign up to dropbox ? or want to wipe out all your tweets ??
Here is a bit of my touch !
var cbs = document.getElementsByTagName('input'); for(var i=0; i < cbs.length; i++) { if(cbs[i].type == 'checkbox') { cbs[i].checked = true; } }
and that’s all ! use firebug/chrome’s console to run this command and all the checkboxes will be checked !
You’ll be reading more soon ;)