[jQuery] Any doc on the validator object in the "invalid-form.validate" event?

[jQuery] Any doc on the validator object in the "invalid-form.validate" event?

Hi all,
It's about the validation plugins.
I found in some example that I can somehow control the validation by using "invalid-form.validate" event.
e.g.
             $("#form")
                 .bind("invalid-form.validate", function(e, validator) {
                    var errors = validator.numberOfInvalids();
                    if (errors) {
                        $("div#error ul").html("<li class='error'>Please correct those highlighed fields!</li>");
                        $("div#error").show();
                    }
                    else {
                        $("div#error").hide();
                    }
                })
                 .validate();
Is there any document on the 'validator' object appear in the function?
What I need is to validate two date inputs, it looks like:
<label>Event date</label>
<input id="fromDate" .../> to <input id="toDate"  .../>
I want to display error for wrong date format.
When fromDate or toDate is wrong, it should gives an error message in one line: 'Event date is incorrect.'
If I use the default way, it would display two errors instead of one when both are incorrect.<br clear="all">
--
Best Regards,
Jacky
網絡暴民 <a href="http://jacky.seezone.net">http://jacky.seezone.net</a>