select all checkboxes on drupal permissions page


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. var a=$(".form-checkbox");
  2. for(var i=0;i<a.length;++i)
  3. a[i].checked=true;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.