Add button class to reset button

LAMF 10 Sep, 2012
Hi again Bob,
I have a special button style class that I want to implement on the Send and Reset buttons in my Chronoforms as well. If I type in the class name "button" in the class field of the submit button it only affects the Submit button not the reset button... How do I solve that?
GreyHead 10 Sep, 2012
Hi LAMF,

I can think of a couple of ways round this.

You could use JavaScript to add a class to the Reset (and Back) button inputs and then use standard CSS to style them. This is probably the most reliable method but takes a little more work than the second option . . .

which is to use CSS3 selectors line input[type=reset] to style them directly. This is easier but may fail in some older browsers like IE6.

Bob
LAMF 10 Sep, 2012
Hi,
Thanks!
Ok I did it by simply adding the class="button" to both reset and submit buttons in the html code of the forms.
This topic is locked and no more replies can be posted.