On 10/03/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Thanks, Sam! > > That will be much more flexible than my approach. > I've often found that when I first begin to learn coding > techniques, that I end up learning the "long-hand" version > first and getting that working, then it's easier to see ways > to move to "short-hand". > > I'm learning CSS the same way. I use it inline a lot now, > but sooner or later, I'll begin to see how creating classes, etc, > will make everything more flexible and end up writing much less code. > > Do you have any idea how I might solve the problem mentioned > below about disabling the submit button while entry errors exist > and enabling the button when all field entries are satisfactory? > > I can't get a handle on that one. > > Rick
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/