jQuery has child
: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".
구글링하다 지쳐서 직접 시도해본 삽질.. 결과는 성공
$("#dummy:has(p)").fadeOut();
Use: Select "#dummy" that has "p".
$("#dummy:not(:has(p))").fadeOut();
Use: Select "#dummy" that has not "p".
구글링하다 지쳐서 직접 시도해본 삽질.. 결과는 성공