Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

jquery - styling the error msg


2 Posts   741 Views


21 May 2009 at 1:38am Community Member, 108 Posts

Where does the error msg that shows on a form set this styling? I have the proper style sheet for .required, but I'm trying to find where/how this is generated.

The reason is I'm doing another validation on a form field and I want to error msg to look identical. The jquery validation works great and the error msg shows up, but it's just not styled.



21 May 2009 at 1:44am Community Member, 108 Posts

Nevery mind. I figured it out. OMG - this spanked me.

The answer was basically there is a default setting for errorClass that I simply added to the css style sheet to be the same as .required. Wored perfectly...uggggg

Everything is so simple once you get your head around it. It took me 4 days to figure out 4 lines of code. I hate when that happens.