All... I am working in a asp.net mvc2 project using MicrosoftMvcValidation...
I have some custom javascript that I need to run when a form gets posted... I am currently running this code when the submit button is clicked. However, when the client side validation fails I do not want to run the code.
I see this article on hooking into the validation but am unable to get it working. ASP.NET MVC2 - hook into client side validation
Does anyone have advice on how to achieve the following.
When submit button pressed and client validation passes... run my custom code
When submit button pressed and client validation fails... do not run my custom code