jquery로 탭 필터를 만들려고합니다. 난 단지 DIV를 선택하는 방법을 물어보고 싶은 것은이 클래스 타입 1도, 클래스 TYPE2에게동일한 obj에서 하나 이상의 클래스 이름을 선택하십시오.
<div class="type1 type2"> </div> //select this one
<div class="type1 type4"> </div>
을 가지고 있으며, 그들이
var typeselect = $('select the div above');
if(typeselect.length > 0){} found it
else
$ ('. type1.type2') ' –
모든 jQuery 선택기에 대한 내용은 [여기] (https://api.jquery.com/category/selectors/) –