ASP.NET MVC check form input is valid on submit
- by Gavin
Hi all,
I have a form that when submitted shows a busy animation and disables the submit button.
Anyone know how to query Microsoft's Sys.Mvc.FormValidation to see if the form passed it's test so I can prevent the busy animation showing if the form hasn't actually been submitted? Or even some other work-around?
At present my client side javascript looks like this:
$('form').submit(function() {
$('input[type=submit]', this).attr('disabled', 'disabled');
ShowBusy();
});
Cheers,
Gavin