I am trying to select elements that have certain classes.
following will only select classA:
$('.holder').children('div[class*=classA]');
Divs can either have classA or classB and other classes as well together!
so it can be like this:
<div class="holder">
<div class="classA"/>
<div class="classA otherClass"/>
<div class="classB"/>
<div class="classB thirdClass"/>
<div class="whatever"/>
</div>
How do I select all elements with classA and classB?