jQuery UI API - .scrollParent()

Category

Methods | UI Core

Usage

Description:Gets the nearest scrollable ancestor.

Returns:jQuery

.scrollParent()

This method does not accept any arguments.

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

This method only works on a jQuery object that contains one element.

Other Extensions