I have HTML like this:
<div id="signbtn">
<a class="btnsignin" href="signin.php">Admin</a>
</div>
How do I find the class of the anchor tag embedded inside the div with id="signbtn".
I need this to be able to assign a different class to the anchor tag only if has "btnsignin" class.
You could use the
.attr()function:and to assign a different class to an anchor with the
btnsigninclass inside an element withid="signbtn":