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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

jquery - styling the error msg


Go to End


2 Posts   1205 Views

Avatar
TerryMiddleton

Community Member, 108 Posts

21 May 2009 at 1:38am

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.

Terry

Avatar
TerryMiddleton

Community Member, 108 Posts

21 May 2009 at 1:44am

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.

Terry