title: toggleclass with missing background-image
body: <p>I have a div with an ID that I want to toggle to show additional info when clicked. However, when I run JavaScript, the images go missing.</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>$('div').on('click', function() {
    $(this).toggleClass('show-description');
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.show-description p {
    height: 150px;
  }
  
  .show-description small {
    opacity: 1;
  }
  
  .first {
    background-image: url("https://via.placeholder.com/1000");
  }
  
  .price {
    float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="first"&gt;
    &lt;p&gt;pumpkinnie
      &lt;small&gt;awesome air fried pumpkin strips. &lt;/small&gt;&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>