Skip to the content.

.offsetParent()

Retrieves the offset parent of the first item in a collection.

Usage

const offset = $(selector).offsetParent();

Returns

A new Dabby collection containing the parent object of the first item in the input collection, or an empty collection if the original collection was empty.

Differences to jQuery

None.