Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery UI API – .scrollParent()

jQuery UI API - .scrollParent()

Category

Methods | UI Core

Usage

**Description:** Get the nearest scrollable ancestor.

Returns:jQuery

.scrollParent()

This method accepts no arguments.

This method finds the nearest scrollable ancestor. In other words,.scrollParent() it finds the element within which the currently selected element scrolls.

This method works only on a jQuery object containing a single element.