Hi, David...

Your code below looks promising.

So I would need to change "dateselect" to the
name of one of my elements and create an
div on my page with an id of "errordiv" to append to?

Did you realize also that the parts that the validation
plug-in creates can be addressed as label.error and input.error?

Would that matter to your code?

Thanks for your input!

Rick

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

Reply via email to