title: hasClass not working. I try to add class to div when "active-card" class appears on it. any ideas?
body: <p>I try to add class to div when &quot;active-card&quot; class appears on it. Tried different solutions, can't make that stuff work. Any ideas?</p>
  <pre><code> jQuery(document).ready(function($){
        if ($(&quot;.card&quot;).hasClass(&quot;active-card&quot;)) {
       $(&quot;.card&quot;).addClass(&quot;card-opacity&quot;);
   }
  });
  </code></pre>