jquery: if ul has li with certain classname?
- by mathiregister
hi guys,
i wonder how i can query if a ul has a first-child li with a certain classname?
like…
<ul>
<li>list element 1</li>
<li>list element 2</li>
</ul>
<ul>
<li class="whatever">list element 1</li>
<li>list element 2</li>
</ul>
i want to query if ul has a child with classname whatever - do something!
is that even possible?
thank you