> errorPlacement: function(error, element) {
> error.insertBefore(element);
> },
By itself, all that did was push the error message to the
front of the formfield, like this...
Principal Please enter the Principal.[Principal Formfield]
Just so we're clear, I'm trying to get it to look like this
when the error message is displayed...
Please enter the Principal.
Principal [Principal Formfield]
I've come close, but haven't been able to put together a
solution that works completely.
Jorn, Sam...
You can see the form online by going to http://bodaford.whitestonemedia.com
and clicking on a property photo on the home page, then
scrolling down on the Featured Properties page until you see the line,
"Click here to calculate mortgage payment."
Take out the pre-filled amount in the Principal field, click in another
formfield
and you'll see how the error message is displaying.
Rick
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jörn Zaefferer
Sent: Friday, March 09, 2007 12:46 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Options for Validation...
Sam, keep in mind that the element is already inside the document, but
the error label is not. And both are jQuery objects, so this should work:
errorPlacement: function(error, element) {
error.insertBefore(element);
}
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/