I'm attempting to use ValidatorEnable(Control, true/false) to enable and disable validators on some input controls on my webform in a radio button click event. What "kind" of input belongs in a couple of the text boxes or whether or not text is required
changes based on the radio button selection.
I'm including jQuery 1.11.0 on the page (used for other parts of the page/code).
Here's some example code:
var eMailValidator = document.getElementById('ctl00_ctl00_pnlOutputText_Area1_ctl00_Login1_validEmail');
var PasswordValidator = document.getElementById('ctl00_ctl00_pnlOutputText_Area1_ctl00_Login1_validPassword');
var txtPassword = document.getElementById('ctl00_ctl00_pnlOutputText_Area1_ctl00_Login1_txtPassword');
if (radNewMember.checked == true) {
ValidatorEnable(eMailValidator, true);
ValidatorEnable(PasswordValidator, false);
txtPassword.disabled = true;
}
What ...
Go to the complete details ...