Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » jquery - styling the error msg

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

Page: 1
Go to End
Author Topic: 732 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    jquery - styling the error msg Link to this post

    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

  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Re: jquery - styling the error msg Link to this post

    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

    732 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.