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

jQuery Parent Descendant Selector

jQuery Parent Descendant Selector

jQuery selector jQuery selector

Example

Select

all descendants of the ... element element:

$("div span")

Try it »


Definition and Usage

The ("parent descendant") selector selects all elements that are descendants of the specified element.

Descendants of an element can be first-generation, second-generation, third-generation, and so on.


Syntax

("

parent descendant

")

Parameters Description
parent Required. Specifies the parent element to select.
descendant Required. Specifies the descendant elements to select (of the specified parent).

Try it - Example

Select