I have a \"submit feedback\" form which uses \"Ajax.BeginForm\" to render a partial containing the form elements. The OnSuccess event is triggering even if the ModelState is
You can do the following:
var OnSuccess = function() { if ($(".validation-summary-errors").length == 0) { //Your javascript/jquery code goes here } }