You will have to write your own Form Helper class to do that.
On Wednesday, December 17, 2014 10:30:33 AM UTC-8, Radharadhya Dasa wrote:
>
> Hi,
>
> Is it possible somehow to have different css classes for members of a set
> of checkboxes?
>
> echo $this->Form->input('groups._ids',
> ['options' => $fGroups,
> 'type' => 'select',
> 'multiple' => 'checkbox',
> 'value' => $values
> ]);
>
> For example I want the first and second checkbox to have css class "x" and
> third to have "z".
>
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.