ValidatorEnable not disabling requiredfieldvalidator
I have some client side script in an ASPX file that enables or disables a required field validator based on whether the form field is visible or not. var oVal1 = document.getElementById(v1); var oVal2 = document.getElementById(v2); ValidatorEnable(oVal1, true); ValidatorEnable(oVal2, false); When I alert the enabled properties of oVal1 and oVal2, they show the correct settings for this condition - oVal1 is enabled, oVal2 is disabled. The problem is the validators are ALWAYS firing. I need to selectively disable one since the field isn't visible, it's not required in this case.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.