How do I find if an element contains a specific class?
<p>I need to check if an element contains a certain child class using JQUERY.</p>

<p>I tried:</p>

<pre><code>if ($('#myElement').has('.myClass')) {
   do work son
}
</code></pre>

<p>Didn't work.</p>

<p>My html code is laid out like this:</p>

<pre><code>&lt;div id="myElement"&gt;
    &lt;img&gt;
    &lt;span&gt;something&lt;/span&gt;
    &lt;span class="myClass"&gt;Hello&lt;/span&gt;
&lt;/div&gt;
</code></pre>
