Return to Snippet

Revision: 35292
at November 5, 2010 04:53 by cwd


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

Initial URL


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

Initial Title
select all checkboxes on drupal permissions page

Initial Tags
javascript, drupal

Initial Language
JavaScript