Posted By

cwd on 11/05/10


javascript drupal

Versions (?)

select all checkboxes on drupal permissions page

 / Published in: JavaScript

quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin

  1. var a=$(".form-checkbox");
  2. for(var i=0;i<a.length;++i)
  3. a[i].checked=true;

Report this snippet  

You need to login to post a comment.