Sunday, May 3, 2009

Forms - How to give an ID or class to my reset button

How to give an ID to my reset button so that I can style it with CSS.

Please advise.

This is what I have:
echo $form->button('Reset', array('type'=>'reset'));

This is the output:
<input type="reset" value="Reset" />

This is something like I need to style it:
<input type="reset" value="Reset" id="resetBtn" />
--~--~---------~--~----~------------~-------~--~----~
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: