Edit this page

up.element up.element.subtree(parent, selector)
JavaScript function

Returns a list of the given parent's descendants matching the given selector. The list will also include the parent element if it matches the selector itself.


Parameters

parent Element

The parent element for the search.

selector string

The CSS selector to match.

Return value

A list of all matching elements.