Use checkbox to determine image class
<p>I am trying to use the image associated with the checkbox to change class depending on if it is checked or not, but for some reason it will not change the class.</p>

<p>Code:                       </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>$('#providers_netflixNO').change(function() {
  if ($(this).is(":checked")) {
    $("#netflixNOLogo").removeClass("logoNotChecked").addClass("logoChecked");
    return;
  }
  $("#netflixNOLogo").removeClass("logoChecked").addClass("logoNotChecked");
});</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;label&gt;
  &lt;input type="checkbox" name="providers" id="providers_netflixNO" value="netflixNO"&gt;
  &lt;img src="http://www.streamjunkie.no/images/providers/netflixNO/Logo.jpg" id="netflixNOLogo" class="logoNotChecked"&gt;
&lt;/label&gt;</code></pre>
</div>
</div>
</p>