jQuery disable/re-enable validators on a page
<p>When I need to disable/re-enable validator I usually use jQuery code like so:</p>

<pre><code>      ValidatorEnable($('[id*=DueDateRequiredValidator]')[0], false);
</code></pre>

<p>and to re-enable it back:</p>

<pre><code>      ValidatorEnable($('[id*=DueDateRequiredValidator]')[0], true);
            var validator = $('[id*=DueDateRequiredValidator]')[0];
            validator.isvalid = true;
            ValidatorUpdateDisplay(validator);
</code></pre>

<p>And it works. But now I need to disable/re-enable a large number of validators, but only a subset of validators, not entire set on a page. There's too many of them to refer each validator by "id".</p>

<p>I tried something like this but it didn't work, don't know why:</p>

<pre><code>      $.each(Page_Validators, function(index, validator) {
                if ( validator.CssClass == "noinjuries" )

                { ValidatorEnable(validator, false); } 


      }); 
</code></pre>

<p>What's the best way to do this, if any?         </p>
