title: jQuery radio button check add class, else remove class if radio button not checked?
body: <p>I need 2 radio button</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>jQuery(document).ready(function($) {
  
    if ($('#user_personal').is(':checked')) {
      $('.user_company').addClass('hidden');
      $('.user_personal').removeClass('hidden');
    } else if ($('#user_company').is(':checked')) {
      $('.user_personal').addClass('hidden');
      $('.user_company').removeClass('hidden');
    }
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.hidden {
    display: none
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="user-type-item"&gt;
    &lt;input name="user" id="user_personal" type="radio"&gt;
  &lt;/div&gt;
  &lt;div class="user-type-item"&gt;
    &lt;input name="user" id="user_company" type="radio"&gt;
  &lt;/div&gt;
  
  &lt;div class="user_personal"&gt;
    &lt;select name="" id="" class="form-control"&gt;
      &lt;option value="0"&gt;&lt;/option&gt;
    &lt;/select&gt;
  &lt;/div&gt;
  
  &lt;div class="user_company"&gt;
    &lt;input type="text" class="form-control"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now I have to use Jquery to check the radio "#user_personal", "div.user_company" add the "hidden" class and "div.user_personal" remove the "hidden" class.
  And when I check on the radio "#user_company", "div.user_personal" add the "hidden" class and "div.user_company" removes the "hidden" class.</p>
  
  <p>Thanks everyone!</p>