How do I find what class of anchor tag has using javascript/jquery?
<p>I have HTML like this:</p>

<pre><code>&lt;div id="signbtn"&gt;
    &lt;a class="btnsignin" href="signin.php"&gt;Admin&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>How do I find the class of the anchor tag embedded inside the <code>div</code> with <code>id="signbtn"</code>.</p>

<p>I need this to be able to assign a different class to the anchor tag only if has <code>"btnsignin"</code> class.</p>
