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;
> });
> 
> 

I ran the page through the W3C validator and found that it had a few
problems, including a table tag like this: "<table".

When I went through it and fixed the markup, the script worked.

Sorry about that. I'll have to remember to check the markup before posting
from now on. Thanks for the replies, though.

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.

Thanks,

EJ
-- 
View this message in context: 
http://www.nabble.com/Enable---disable-submit-button-not-working-tf4133072s15494.html#a11755195
Sent from the JQuery mailing list archive at Nabble.com.

Reply via email to