$(".test").children().slice(0,3); // test 클래스 한 단계 하위 요소중에 첫번째에서 3개 요소 선택
$("img").slice(0,2).clone().appendTo("#gallery"); // img 전부를 선택한후 첫번째 요소부터 2개 요소를 선택해서 gallery 영역에 복사
$(".test").children().filter(".select"); // test 클래스 한 단계 하위 요소중에 select 클래스
$(".test").children().not(".select"); // test 클래스 한 단계 하위 요소중에 select 클래스만 빼고 전부
'javascript, jquery' 카테고리의 다른 글
타이머 - setTimeout (0) | 2014.10.02 |
---|---|
찾기 - find (0) | 2014.10.02 |
순서 - first / eq / last (0) | 2014.10.02 |
바꾸기 - replaceWith (0) | 2014.10.02 |
요소이동 - parent / children / prev / next (0) | 2014.10.02 |