Tutorialsplane

jQuery offsetParent Method


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.

jQuery offsetParent() Method with demo Example

jQuery offsetParent() Method – Example 1


Try it »