jQuery has child

햄스터.jpg

:has()

$("#dummy:has(p)").fadeOut();

Use: Select "#dummy" that has "p".

:not(:has())

$("#dummy:not(:has(p))").fadeOut();

Use: Select "#dummy" that has not "p".

구글링하다 지쳐서 직접 시도해본 삽질.. 결과는 성공

Tag

Leave Comments