Wednesday, August 5, 2009

Enable or Disable Asp.net validation control using JavaScript

function EnableValidator()
{
var dropdownValue = document.getElementById("").value;
if(dropdownValue == 2)
{
ValidatorEnable(document.getElementById(''),true);
}
else
{
ValidatorEnable(document.getElementById(''),false);
}
}