title: CustomValidator problem
body: <p>I have a number of ASP.NET validators on my page of various types, some of which I am  disabling depending on user selections on a page, using javascript.</p>
  
  <pre><code>$.each(Page_Validators, function(index, validator) 
         {
             if ($(validator).hasClass("pain")) {
  
                 ValidatorEnable(validator, false);
  
          }
  });
  </code></pre>
  
  <p>This seems to work and validators do not fire in all cases except any CustomValidators that I am using whenever I cannot use other validator types</p>
  
  <pre><code> &lt;asp:CheckBoxList id="BodyPartsList" runat="server" RepeatColumns = "2" 
                      Width="1023px"&gt;
                      &lt;asp:ListItem Text = "0. Head/headaches" Value = "1"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "1. Leg(s)" Value = "2"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "2. Arm(s)" Value = "3"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "3. Neck" Value = "4"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "4. Shoulder(s)" Value = "5"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "5. Low Back" Value = "6"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "6. Upper Back" Value = "7"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "7. Feet" Value = "8"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "8. Hand(s)" Value = "9"&gt;&lt;/asp:ListItem&gt;
                      &lt;asp:ListItem Text = "9. Other(Describe in &amp;quot;Details of Plan&amp;quot;)" Value = "10"&gt;&lt;/asp:ListItem&gt;
                  &lt;/asp:CheckBoxList&gt;
  
                  &lt;asp:CustomValidator ID="PainLocationValidator" runat="server" Display="Dynamic"
                  ErrorMessage="Location of pain is required." 
                  ClientValidationFunction="checkPainListValidate" 
                  ValidationGroup = "OnSave" EnableClientScript= "true" SetFocusOnError= "true" Width = "100%" CssClass = "pain" /&gt;
  
  
  
   function checkPainListValidate(sender, args) {
  
      args.IsValid = true;
  
      if ($('#&lt;%= BodyPartsList.ClientID %&gt; input:checked').length &gt; 0)
          args.IsValid = true;
  
      else
          args.IsValid = false;
  
  }
  </code></pre>
  
  <p>Why is this happening? Is there something else I can do to disable those as well?</p>
  
  <p>Thanks.</p>