[jQuery] Re: [validate] Custom validation trigger

2009-03-02 Thread Jörn Zaefferer
You can use the valid-method to trigger the validation any time: $(#contact_form).valid(); Jörn On Mon, Mar 2, 2009 at 1:30 PM, knal knalp...@gmail.com wrote: Hi there, I have a form which is validated with the jQuery Validate PI. The JS roughly looks as follows: code var validator =

[jQuery] Re: [validate] Custom validation trigger

2009-03-02 Thread knal
Great! Thanks for your fast reply. I will try it tonight. The reason why i need this, is that i'm trying to combine Validate with jNice. Thanks again, Knal On Mar 2, 1:35 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: You can use the valid-method to trigger the validation any time:

[jQuery] Re: [validate] Custom validation trigger

2009-03-02 Thread Abrar Arshad
On Mon, Mar 2, 2009 at 3:30 PM, knal knalp...@gmail.com wrote: Hi there, I have a form which is validated with the jQuery Validate PI. The JS roughly looks as follows: code var validator = $(#contact_form).validate({ rules: { name: {

[jQuery] Re: [validate] custom validation trigger

2008-09-08 Thread Jörn Zaefferer
The plugin doesn't support customizing event in that manner. But you can always implement your own event handling, disabling the defaults if they interfere, and trigger validation manually. Something like this: $(#dayfield).keyup(function() { if (this.value.length = 2 $(this).valid()) {

[jQuery] Re: [validate] custom validation trigger

2008-09-08 Thread casavecchio
Hy Jörn, thx for the unbelieveble fast reply. I just wrote kind of oldstyle js-function, doing the same. And the blur of that function triggered validation, too. Didn't thought, it could be so easy. But your solution is much more elegant. Boris On 8 Sep., 17:07, Jörn Zaefferer [EMAIL PROTECTED]