I need a javascript function, which can turn my asp.net validation off on the webpage. Do anyone have any idea about this.
Asked
Active
Viewed 760 times
1
-
Same question: http://stackoverflow.com/questions/400346/disable-asp-net-validators-with-javascript – ThiefMaster May 13 '10 at 10:06
1 Answers
2
var myVal = document.getElementById('myValidatorClientID');
ValidatorEnable(myVal, false);
This article seems to be useful, too: http://aspdotnetfaq.com/Faq/How-to-control-ASP-NET-Validator-Controls-Client-Side-validation-from-JavaScript.aspx

Glorfindel
- 21,988
- 13
- 81
- 109

ThiefMaster
- 310,957
- 84
- 592
- 636