I have a form and unobtrusive validations are enabled. By default in submit method client side validation gets triggered and (if you have any errors) the form looks like thi
You must force the form to validate before checking if it is valid. Something like this:
var form = $( "#myform" ); form.validate(); if (form.valid()) { // ... }