jQuery Parent Descendant 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
-
all descendants of the ... element
- Element
How to select-
all descendants of the ... element
- .
- .
jQuery selector