Youll have to alter it for Cake of course :}

http://www.milesj.me/blog/read/50/Toggling-All-Checkboxes-With-JavaScript

On Jan 16, 9:37 am, xBast <[email protected]> wrote:
> With prototype.js
> A form with id "my_form"
> And checkboxes with class "check"
>
> You can check them all in one line :
>
> <?=$form->submit('Select all', array("onClick"=>"$$('#delMsg
> input.check').each(function(box){box.checked=true});return false;"));?>
>
> --
> View this message in 
> context:http://n2.nabble.com/how-to-tick-all-the-checkboxes-when-the-checkbox...
> Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to