I do have created a MVC C# App with a ViewModel which all the properties are [required] and also have created its due View, my problem is that I need to capture the click event from the submit button in order to make some validations so I' decided to use jQuery to capture the click event this way:
$("#IngresarInfo").click(function (e) {
e.preventDefault();
$("#idISSSBuscar").rules("remove", "required");
$.ajax({ ... some code here
but if I use the e.preventDefault();
the validation [required] does work (doesn´t show any error message) and what i want is first to validate that all the forms inputs are completed and after that make the validation.
could you please tell me what is wrong with my code?