Checks if the specified child has the specified parent. If either element doesn't exist in the DOM, returns false.
child
parent
false
Element, EventTarget, or CSS selector.
Element, EventTarget, or CSS selector of parent.
true if the specified child is in the specified parent.
true
Checks if the specified
child
has the specifiedparent
. If either element doesn't exist in the DOM, returnsfalse
.