jQuery “offsetParent()” is used to get the closest ancestor element from set of the matched elements.
Syntax : jQuery offsetParent method
$(selector).offsetParent();
Note : It Accepts no parameter.
$(selector).offsetParent();
Note : It Accepts no parameter.