Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 30, 2012 06:04 PM by RogerH
Member
354 Points
73 Posts
Apr 30, 2012 06:04 PM|LINK
Appologies, you are right the event will fire every time. However you can check the validation status using the valid() method on the form itself:
$('form').submit(function () { if($(this).valid()) { alert('the form is valid'); } });
RogerH
Member
354 Points
73 Posts
Re: Html.ValidationSummary Question
Apr 30, 2012 06:04 PM|LINK
Appologies, you are right the event will fire every time. However you can check the validation status using the valid() method on the form itself: