function Validation()
{
if (document.Form1.txtfrom2.value.length > 0)
ValidatorEnable(Rftxtfrom2, true);
ValidatorEnable(Rftxtjd2, true);
ValidatorEnable(Rftxtflno2, true);
ValidatorEnable(Rftxtdep2, true);
}
i need to txtfrom2 text box contain 1 charecter 4 RequiredFieldValidator automaticaly ennable true

SaiRoja50 reputationPosted Oct 20, 2014, 9:03 PM EDT
function Validation()
{
if (document.Form1.txtfrom2.value.length > 0)
ValidatorEnable(document.getElementById(Rftxtfrom2), true);
ValidatorEnable(document.getElementById(Rftxtjd2), true);
ValidatorEnable(document.getElementById(Rftxtflno2), true);
ValidatorEnable(document.getElementById(Rftxtdep2), true);
}
Abhijeet SinghRank #415 · 6K reputationPosted Mar 28, 2015, 11:33 AM EDT
http://help.campaignmonitor.com/topic.aspx?t=194
Joginder BangerRank #360 · 7K reputationPosted Mar 28, 2015, 12:03 PM EDT
document.getElementById("<%=ReqVal.ClientID%>").style.visibility = "hidden"; document.getElementById("<%=ReqVal.ClientID%>").enabled = false;
ENABLE
document.getElementById("<%=ReqVal.ClientID%>").style.visibility = "visible"; document.getElementById("<%=ReqVal.ClientID%>").enabled = true;
And look below example also
ValidatorEnable(document.getElementById(validatorId), false); var hidden = document.getElementById(hiddenID); hidden = "1";Then in your load event:
If (hidden = "1") then validator.enabled=false end if