onInvalid: function(form) {
    $(form).find("[EMAIL PROTECTED]").attr("disabled", "disabled");
},
onValid: function(form) {
    $(form).find("[EMAIL PROTECTED]").attr("disabled", "");
}



That looks good to me!  Hopefully that will work.  I'm using Jorn's plug-in
in debug mode, which is supposed to prevent submission whether the
form fields are correct or not.  However, since I'm using other script which
works in an Ajax manner to submit the entries to another page, I think
that's
interfering somewhat with Jorn's plug-in and its control over the process.

I'll tinker around with your methods above and see what happens.

Hopefully, Jorn will show up and provide us some assistance, too...

Thanks!

Rick



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sam Collett
Sent: Saturday, March 10, 2007 7:02 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Validation help with Date Selector

I think to do that, the validation needs two more callbacks, e.g.
onValid, onInvalid. So the following is possible:

onInvalid: function(form) {
    $(form).find("[EMAIL PROTECTED]").attr("disabled", "disabled");
},
onValid: function(form) {
    $(form).find("[EMAIL PROTECTED]").attr("disabled", "");
}

Perhaps Jörn may be willing to add this?

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to