To disable or enable the validation of the page we can simply use this JQuery code-
Check this below code-
//Function to Enable/ Disable all validation
function EnableValidation(boolFlag) {
//Turn on/off all validation
$.each(Page_Validators, function (index, validator) {
ValidatorEnable(validator, boolFlag);
});
}
Now you can call this function. Just pass boolean value to enable or disable the validations.
To disable the validations-
EnableValidation(false);
To enable the validations-
EnableValidation(true);
Check this below code-
//Function to Enable/ Disable all validation
function EnableValidation(boolFlag) {
//Turn on/off all validation
$.each(Page_Validators, function (index, validator) {
ValidatorEnable(validator, boolFlag);
});
}
Now you can call this function. Just pass boolean value to enable or disable the validations.
To disable the validations-
EnableValidation(false);
To enable the validations-
EnableValidation(true);
No comments:
Post a Comment