title: Adding css to radio button for checked and clear css unchecked in js
body: <p>How do I style the radio button for checked only and clear it? I've tried several ways. It's not clearing.</p>
  
  <pre><code>$('input:radio').on('click', function () {
      var $field_type = $("[name=field]:checked");
      #and other field types doing the same thing
      $("label[for='" + $field_type.attr('id') + "']").css({'border': '2px solid #333'})
  </code></pre>
  
  <p>I also tried <code>$("label[for='" + $(this).attr('id') + "']").css({'border': '2px solid #333'})</code>. It does the same thing. </p>