Close this search box.

Disabling an ASP.Net Validator through Javascript

If you ever find yourself needing to selectively disable an validator through javascript, you can do the following (in 2.0, not sure if this exists in 1.x):

function doSomething() {
  var myVal = document.getElementById('myValidatorClientID');
  ValidatorEnable(myVal, false);

Quick and easy! Sadly, not as easy to find through Google, so hopefully this post will help that. 🙂

Posted on Friday, August 11, 2006 8:57 AM ASP.Net | Back to top

This article is part of the GWB Archives. Original Author: jonas bush

Related Posts