Yes - that way it didn't interfere with the date selector icon at all.

- David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, March 09, 2007 11:20 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Validation help with Date Selector

So with your method, you ended up with the error message
appearing *above* the formfield?

Rick

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Friday, March 09, 2007 2:03 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Validation help with Date Selector

Yeah, I knew about the css (.error) but my issue was with where it was being
placed in relation to the date selector image that was added.  My final
solution was to append the error message before the input field. That made
everything consistent.

Good luck with your form..... David

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of David Dexter
Sent: Friday, March 09, 2007 1:23 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Validation help with Date Selector

$("#myform").validate({
    errorPlacement: function(error, element) {
        if(element.attr('id') == "dateselect") {
                error.appendTo("#errordiv");
        } else {
                error.insertAfter(element);
        }
    }
});

- David





_______________________________________________
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/



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

Reply via email to