开发者

Javascript function to disable validation on your page

开发者 https://www.devze.com 2022-12-30 17:20 出处:网络
I need a javascript function, which can turn my asp.net validation off on the we开发者_如何学Gobpage.

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

精彩评论

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