开发者

Javascript function to disable validation on your page

I need a javascript function, which can turn my asp.net validation off on the we开发者_如何学Gobpage. Do anyone have any idea about this.


http://geekswithblogs.net/jonasb/archive/2006/08/11/87708.aspx

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜