How to manually revalidate / trigger validation using unobtrusive jQuery validation?
I have created my own conditional validation attribute to validate my MVC model on both the client and the server by inheriting from RequiredAttribute and implementing IClientValidatable . The idea is that if a boolean property on my model is true, then another property is required. In the view this manifests itself as a checkbox which dictates whether a textbox needs to be filled in. This works perfect except for when the user performs the following actions: Checks the checkbox (the field is now required). Submits the form (client side validation runs, error message displayed). User unchecks