Hi Jack,

Thanks for your answer.

Ok then, but how do you set a class for the inputs?

If I do this :

<?php echo $form->input('Group',
        array(
        'label' => 'Group',
        'type' => 'select',
        'multiple' => 'checkbox',
        'options' => array(1 => 'Pilot', 2 => 'Medical', 3 =>
'Other'),
        'class' => 11)
);
?>

this doesn't change anything at all, I mean my checkboxes they are not
assigned "11" as a class.

Cheers!


On Oct 2, 2:36 pm, Jack Timmons <[email protected]> wrote:
> On Sat, Oct 2, 2010 at 4:50 AM, thomaus <[email protected]> wrote:
> > So far so good right? But now I would like to have the id set to 11
> > not only for the global input tag, but for EVERY input tag, which
> > would output this :
>
> That's invalid HTML. The purpose of the ID property is to give each
> DOM element a unique name.
>
> What you're looking to do is give each of them a class. This will
> allow you to use smart selectors to pick the elements you want to
> style/manipulate.
>
> Off the top of my head, remove the ID property and instead use "class".
>
> --
> Jack Timmons
> @_Codeacula

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