title: Check if a radiobutton is not checked in jquery
body: <p>Basically I'm trying to set the disabled attribute to a select node when the checkbox labeled as Section is not checked, if it is checked it should remove the attribute.</p>
  
  <p>HTML:</p>
  
  <pre><code>    &lt;label&gt;
          &lt;input type="radio" name="table" value="main_categories" checked&gt;
          Section&lt;/label&gt;
      &lt;label&gt;
          &lt;input type="radio" name="table" id="subcat" value="sub_categories"&gt;
          Catégorie&lt;/label&gt;
      &lt;select id="selectsec"&gt;
          &lt;option value="1"&gt;Test&lt;/option&gt;
      &lt;/select&gt;
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function() {
      $('#subcat').change(function(){
          if (!$('#subcat').is(":checked")) {
              $('#selectsec').attr('disabled','disabled');
          }
          else {
              $('#selectsec').removeAttr('disabled');
          }
      });
  });
  </code></pre>
  
  <p>For some reason this isn't working :(</p>