>
> How can I make the form helper output this?:
>
> <select name="data[Statuslist][statuscss]" 0="0"
> id="StatuslistStatuscss">
> <option class="status1" value="status1">status1</option>
> <option class="status2" value="status2">status2</option>
> <option class="status3" value="status3">status3</option>
> </select>
I doubt you can do that with Cake without creating your own helper. I
think a better route would be to do that with javascript. It should be
a cinch with JQuery, especially if the class names are the same as the
values.
Actually, if this is purely for styling, you might try going with straight CSS:
option[value=foo] {...}
option[value=bar] {...}
etc.
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment