Search code examples
asp.net-mvc-3jquery-validateautopostback

MVC 3 - AutoPostback with CauseValidation=false Behavior


I'm familiar with the method of submitting a form via a change event like or a checkbox's check event. Most articles explain how to find the first form using jQuery and invoke it's submit() method. However, I wish to submit the form but not cause validation so the back-end can perform other actions. In my case, I have a dropdown that a users changes. Depending on the value, the back-end adds/removes certain controls. The issue I'm runing into is that the validation prevents the form from submitting.

Q: How do I submit the form so it does not perform client-side validation?


Solution

  • Remove the validation just before the form is submitted - check out the answers here How do I remove jQuery validation from a form?