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

jQuery parent > child Selector

jQuery parent > child Selector

jQuery selector jQuery 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

Select