jQuery 33강 - find

dd·2025년 8월 13일

find : 찾기
부모는 무조건 먼저 찾고, 자식을 찾기

$this.parent().find(' > *').addClass('active');

$(this.parent().children().addClass('active');

둘이 똑같음
부모: .box-1

0개의 댓글