title: Disable a validation control in Jquery?
body: <p>I have asp.net web form with lot of .net controls. where few of the controls are disabled depending on the input of another controls. All of the controls are required so i have to check for required validation as well.
  I can disable the control using jquery but i am not able to disable the validation control. </p>
  
  <p>Here is my code.. any better way of doing this will be very appreciable.</p>
  
  <pre><code>  &lt;script&gt;
  
         $('#&lt;%=rdb_one.ClientID%&gt; input:radio').click(function () {
  
       var currentIdone = 'Humans';
       var currentId = $(this).val();
       if (currentId != currentIdone) {
           $('#&lt;%=rdb_two.ClientID%&gt; input').attr('checked', false);
           $('#&lt;%=rdb_two.ClientID%&gt; input').attr('disabled', 'disabled');
  
  
       }
       else {
  
           $('#&lt;%=lstExposureValue.ClientID%&gt; input').removeAttr('disabled');
  
  
  
       }
  
   });
  
   &lt;/script&gt;
  
   &lt;asp:RadioButtonList CssClass="Required"  ID="rdb_one" runat="server" OnSelectedIndexChanged="rdb_studysubj_SelectedIndexChanged"&gt;
            &lt;asp:ListItem Value="Humans"&gt;Humans&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Non-Human primates"&gt;Non-Human primates&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Rodents"&gt;Rodents&lt;/asp:ListItem&gt;
            &lt;asp:ListItem Value="Others"&gt;Others&lt;/asp:ListItem&gt;
            &lt;/asp:RadioButtonList&gt;
        &lt;br/&gt;
        &lt;br/&gt;
           &lt;asp:RadioButtonList CssClass="Required" ID="rdb_two" runat="server"  OnSelectedIndexChanged="rdb_study_popul_SelectedIndexChanged"&gt;
             &lt;asp:ListItem&gt;Individuals&lt;/asp:ListItem&gt;
             &lt;asp:ListItem&gt;Population&lt;/asp:ListItem&gt;
             &lt;/asp:RadioButtonList&gt;
             &lt;asp:RequiredFieldValidator ID="vald_one" Display="None" ErrorMessage="Study Population is Required" runat="server" ControlToValidate="rdb_two"&gt;&lt;/asp:RequiredFieldValidator&gt; 
  </code></pre>
  
  <p>Here i disable the control <strong>"rdb_two"</strong> depending on the value from <strong>"rdb_one"</strong> but i am not able to disable the validation controls for <strong>"rdb_two"</strong> any ideas. i have this function repeatedly used over all the controls with in the same page. </p>