title: Change image if radio button is selected
body: <p>I have these two radio buttons where I have hidden the input marks and replaced them with images: </p>
  
  <pre><code>&lt;div class="card-block center-style"&gt;
      &lt;div class="form-check inline-style"&gt;
          &lt;label class="form-check-label question-label"&gt;
              &lt;input type="radio" class="form-check-input" name="ps-qna-1" id="ps-form-1" value="Homeowner"&gt;
              &lt;div class="shadow-active"&gt;
                  &lt;div class="circle"&gt;&lt;img src="images/homeowner.png" id="img-1"&gt;&lt;span&gt;Homeowner&lt;/span&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/label&gt;
      &lt;/div&gt;
      &lt;div class="form-check inline-style"&gt;
          &lt;label class="form-check-label question-label"&gt;
              &lt;input type="radio" class="form-check-input" name="ps-qna-1" id="ps-form-2" value="Business"&gt;
              &lt;div class="shadow-active"&gt;
                  &lt;div class="circle"&gt;&lt;img src="images/business_servicer.png" id="img-2"&gt;&lt;span&gt;Business/Servicer&lt;/span&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/label&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need the images to swap out if the radio button is selected. If not, I need the image to stay what it is in the HTML. I have this for my JQuery:</p>
  
  <pre><code>$(document).ready(function() {
  $('input[name="ps-qna-1"]:radio').click(function(){
      if ($('input[name=ps-qna-1]:checked').val() == "Homeowner") {
          $("#img-1").attr("src","images/homeowner-active.png");
  
      } else if ($('input[name=ps-qna-1]:checked').val() == "Business") {
          $("#img-2").attr("src","images/business-servicer-active.png");
  
      }
  });
  });
  </code></pre>
  
  <p>But my code is not working. It is not swapping out the images. What am I doing wrong here? Any help is good. Thanks! </p>
  
  <p>I have added two pictures of what the radio buttons look like before selection and how it looks after one is selected. but I need that house image swapped out to a different house image with color in it. Hope this wasn't too confusing. </p>
  
  <p><a href="https://i.stack.imgur.com/5Al3c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5Al3c.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/wxEOJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wxEOJ.png" alt="enter image description here"></a></p>