<ul class="list">
<li class="class1">text</li>
<li class="class2">text</li>
<li class="class3">text</li>
<li class="class4">text</li>
<li class="class5">text</li>
</ul>
How do I search for some class inside .list
?
Like:
search for .class1 inside .list () {
// do something if true
} else {
// do something if false
}