/ Published in: JavaScript
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var a=$(".form-checkbox"); for(var i=0;i<a.length;++i) a[i].checked=true;