I am validating some .net validators in javascript on the button client click event.
if (typeof (Page_Validators) != "undefined") {
for (var i = 0; i < Page_Validators.length; i++) {
ValidatorValidate(Page_Validators[i])
if (!Page_Validators[i].isvalid) {
alert("not valid");
}
else {
alert("valid");
}
}
}
But if i have more than one validation groups in the same page, then on the button click of one button will validate all the validators in the page, not the validators associated with that button's validation group.
So is there any way to only validate validators of a particular validation group from javascript?
Try
Page_ClientValidate('ValidationGroup');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With