Check if Div with specific ID has a certain class
<p>In the following code, I wanna find out if the div with id <strong>dia</strong> has the class named <strong>active</strong></p>

<pre><code>&lt;div id="dia" class="wrapper-dropdown-5 active" tabindex="1"&gt;
...
&lt;/div&gt;
</code></pre>

<p>This is what I tried, but it doesn't seem to work:-</p>

<pre><code>console.log($("#dia").hasClass("active"));
</code></pre>

<p>Many Thanks.</p>
