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
Slight variation on Luis' answer:
function OnSuccess() { if ($("span[class='field-validation-error']").length == 0) { alert("Target Platform saved Successfully."); } }