On 09/03/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Hi, Sam, and thanks for the reply...
>
> With your code, the validation function seems to be
> working, but the error message is not displaying...
>
> And it's not that I want *every* error message to display
> before #Principal (that's the id for one of the form fields),
> I want the error message for each form field to display
> above each form field, as in:
>
> #Principal error message.
> #Principal form field
>
> #Interest error message.
> #Interest form field
>
> #Years error message.
> #Years form field
>
> Any other suggestions?
>
> Rick

I think I got it mixed up:

errorPlacement: function(error, element) {
    $(element).before(error).before("<br>");
},

This should add the error before the element and then a break (so it
appears directly above)

>
>
>
>
>
>
> I guess you want everything before Principal? Try this instead:
>
> errorPlacement: function(error, element) {
>      $(error).before("#Principal");
> },
>
> Untested though (I haven't used Jörn's plugin yet, but I think I know
> how errorPlacement works).
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to