I have a remote validator set up like this.
[Remote("ValidateField", "MyController", AdditionalFields = "Phone")]
MyProperty
It works with unobtrusive ajax and the like included just fine. However, when I change the field Phone
(a field the validation depends on), I want it to rerun this remote validaiton.
I tried this: https://stackoverflow.com/a/5618380/386869 but I had no luck. I'm not running any jquery validate code on my own, I'm depending on the MVC attributes for validation (including the remote validation specified above), so maybe that's the problem? But I haven't need it until now...
Is it possible to rerun this remote validation using JavaScript?