That's it ... I'm working on an asp.net mvc2 project using MicrosoftMvcValidation ...
I have custom javascript that I need to run when the form submits ... At the moment, I run this code when I click the submit button. However, when client-side validation fails, I do not want to run the code.
I see this article about connecting to a scan, but I can’t get it to work.
ASP.NET MVC2 - connect to client-side validation
Does anyone have any tips on how to achieve the following.
When the submit button is pressed and the client check passes ... run my custom code
When the submit button is clicked and the client check fails ... do not run your code
source
share