title: Add class to parent div when radio button is checked and remove class if other radio is checked
body: <p>I was able add a class to the parent div when the radio button is checked.
  Now when i want to click on the other radio button I want to remove the class on the previous div.</p>
  
  <p>This is what i have :</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>$(".radio").change(function() {
    if ($(this).is(":checked")) {
      $(this).parent().parent().parent().addClass('selected-prize');
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.selected-prize {
    border: 1px solid red
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="prize-wrapper"&gt;
    &lt;div class="prize"&gt;
      &lt;h1&gt;Cooking class &lt;br&gt; Cooking class&lt;/h1&gt;
      &lt;div class="img-holder"&gt;
        &lt;img src="{{ asset('assets/images/emo.png') }}" alt=""&gt;
      &lt;/div&gt;
      &lt;div class="form-check"&gt;
        &lt;input class="radio" type="radio" id="test3" name="radio-group2"&gt;
        &lt;label for="test3"&gt;Select&lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="prize-wrapper"&gt;
    &lt;div class="prize"&gt;
      &lt;h1&gt;Cooking class &lt;br&gt; Cooking class&lt;/h1&gt;
      &lt;div class="img-holder"&gt;
        &lt;img src="{{ asset('assets/images/emo.png') }}" alt=""&gt;
      &lt;/div&gt;
      &lt;div class="form-check"&gt;
        &lt;input class="radio" type="radio" id="test4" name="radio-group2"&gt;
        &lt;label for="test4"&gt;Select&lt;/label&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>