jQuery parent > child Selector
Example
Select
of the direct children of an element element:
$("div > span")
Try it »
Definition and Usage
The ("parent > child") selector selects all elements that are direct children of the specified element.
Syntax
("
parent
child
")
| Parameters | Description |
|---|---|
| parent | Required. Specifies the parent element to select. |
| child | Required. Specifies the direct child elements to select (of the specified parent). |
Try it - Example
-
all direct children of the ... element
- Element
How to select the-
all direct children of the ... element
- .
- .
jQuery selector