Hi
If your class=“z” is to target the last item you might be better using 

:last-child selector in CSS
http://www.w3schools.com/cssref/sel_last-child.asp 
<http://www.w3schools.com/cssref/sel_last-child.asp>

> On 17 Dec 2014, at 18:30, Radharadhya Dasa <r...@1108.cc> 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 
> <https://www.facebook.com/CakePHP>
> Find us on Twitter http://twitter.com/CakePHP <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 cake-php+unsubscr...@googlegroups.com 
> <mailto:cake-php+unsubscr...@googlegroups.com>.
> To post to this group, send email to cake-php@googlegroups.com 
> <mailto:cake-php@googlegroups.com>.
> Visit this group at http://groups.google.com/group/cake-php 
> <http://groups.google.com/group/cake-php>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

....................................
Mike Karthäuser
Director, Brightstorm Ltd.

1, Brewery Court
North Street
Bristol
BS3 1JS

mi...@brightstorm.co.uk <mailto:mi...@brightstorm.co.uk>
www.brightstorm.co.uk <http://www.brightstorm.co.uk/>
+44(0) 7939252144
....................................

-- 
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 cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to