.isParent( child )
.isParent() will check whether the source element is a parent of provided child element.
Parameters
NameTypeDefaultPossible ValuesDescription
childHTMLElementHTMLElementHTMLElement against which the source element is checked for parent relationship
Returns
NameDescription
booleantrue if source element is parent of child element else false
Example 1
This example checks whether #parent div is a parent of #child div.
JS HTML
		$.domLoaded(function() {

				var child = $.get("#child");
				
				//check #parent isParent of #child
				if($.get("#parent").isParent(child)) {
				
					console.log("Parent");
					
				} else {
				
					console.log("Not a Parent");
					
				}
				
			});
			
		});						
						
<body>
	
	<div id="parent"> 
	Parent
	
		<div id="child">child</div>

	</div>

</body>