Back

.children( [selector] )

Get the children of each element in the current set

The results will only include direct children and will not traverse any deeper descendants

If selector is provided, the results will only include children that match the selector

Params

selector{Selector} [optional]A selector expression to match elements against

Returns

DollarJS (new set)

Examples

$('p').children()
$('p').children('.foo')