jquery: if ul has li with certain classname?
Posted
by mathiregister
on Stack Overflow
See other posts from Stack Overflow
or by mathiregister
Published on 2010-06-10T12:10:44Z
Indexed on
2010/06/10
12:32 UTC
Read the original article
Hit count: 221
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
© Stack Overflow or respective owner