Call javascript function after form validation ASP.NET MVC
I have set an OnSubmit() property to @Html.BeginForm() that calls this function: $('form').submit(function () { deleteImages(); return true; }); The problem is, this gets executed even if the form isn't valid. How do I check if the form is valid,…