Ok, here is the deal, I have seen a few posts on SO relating to this issue, but nothing is working for me.
Basically, I have select drop downs that are being load
I could only get it the validation to work inside of OnComplete
instead of OnSuccess
:
Here's the AJAX Code:
@using (Ajax.BeginForm("Index", null,
new AjaxOptions { OnSuccess = "onSuccess",
OnComplete = "onComplete"},
new { id = "mainForm" }))
And here's my script:
function onComplete(result) {
$.validator.unobtrusive.parse("#mainForm");
alert("Complete");
};