Enable/disable asp.net validator controls within a specific "ValidationGroup" with jQuery?
asp.net, javascript, jquery, validation
Solution
The validator properties aren't rendered as attributes unfortunately, so I don't know a good way to select them directly. You can try to iterate the Page_Validators array and filter out the ones you want to work with.
Try:
$.each(Page_Validators, function (index, validator){
if (validator.validationGroup == "your group here"){
ValidatorEnable(validator, false);
}
});
Problem
I know how to enable/disable individual validator controls on the client side using ``` ValidatorEnable(validator, false); ``` But how do you enable/disable all the validators within a ValidationGroup?