You can use validator.submitted, which maps the fields already submitted.

For example, the default onclick handler:

onclick: function(element) {
        if ( element.name in this.submitted )
                this.element(element);
}

Instead of "this", reference the validator object:

var validator = $("#myform").validate();

Jörn

On Fri, Mar 6, 2009 at 2:21 PM, knal <knalp...@gmail.com> wrote:
>
> Hi there,
>
> I was wondering if there's some kind of flag, or variable that i can
> check,
> to see if a user has already tried to submit a form which is validated
> with Validate.
> Because only after the first submit i would like to call $
> (".fields").valid(); on certain fields.
>
> Thanks,
> Knal

Reply via email to