[jQuery] Re: Enable / disable submit button solution

2007-07-23 Thread Mike Alsup
Regarding the solution above, that's a different style of validation that works great in some situations, but for this app I really want to pursue the concept of not enabling the submit button until the form is valid. Yes, I didn't mean to imply you should change "how" you're validating the fo

[jQuery] Re: Enable / disable submit button solution

2007-07-23 Thread jarrod
malsup wrote: > > > jarrod, > > Now that I know what you're trying to do I would suggest something like > this: > > $('form').submit(function() { > var val = $('[EMAIL PROTECTED]', this).val(); > if (val == null) > alert('Please enter a value'); > return val != null; > }