I'm trying to make a tab filter by jquery. I want to ask how to select only div has class type1 also has class type2
<div class="type1 type2"> </div> //select this one
<div class="type1 type4"> </div>
and check the selector length if they found
var typeselect = $('select the div above');
if(typeselect.length > 0 ){} found it
else