Is there any way to find whether an element is a parent or ancestor of other.
I have searched the jquery and found the below method. But here we cant use any java script plain object or jquery object.
$.contains( document.documentElement, document.body ); // true How to validate? Please suggest.