I believe I've found an acceptable solution that doesn't require
hacking the plugin itself.

I hope I haven't overlooked any unwanted side effects now.

I've instantiated validate like this now, essentially overwriting the
onfocusout handler:

$(myform)
    .validate(
        onfocusout:
            function(element) {
                if ( !this.checkable(element) ) {
                    this.element(element);
                }
            }
    );

The original handler in the actual plugin code looks like this:
                onfocusout: function(element) {
                        if ( !this.checkable(element) && (element.name in 
this.submitted
|| !this.optional(element)) ) {
                                this.element(element);
                        }
                }


As I said, it seems to behave as required by my client now, but I'm
not entirely sure I've thought of all relevant test cases.



On Oct 7, 12:49 pm, Thomas <thpick...@googlemail.com> wrote:
> Hello!
>
> I'm using the validate plugin, and I am loving it.
>
> Unfortunately, my client would like to show validation errors on form
> fields on blur events every time, as opposed to showing them only if
> the user has previously entered something in the field at least once.
>
> Before I start hacking inside the plugin, I figured I could ask if
> there is an option that I'm just not seeing to enforce this behavior.
>
> Thanks for the help!

Reply via email to