Thursday, December 18, 2014

Re: different css styles for checkboxes

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

:last-child selector in CSS

On 17 Dec 2014, at 18:30, Radharadhya Dasa <rrd@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
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+unsubscribe@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.

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

1, Brewery Court
North Street
Bristol
BS3 1JS

mikek@brightstorm.co.uk
www.brightstorm.co.uk
+44(0) 7939252144
....................................

No comments: