← Back to Index

.find()

Get the descendants of each element in the current set of matched elements, filtered by a selector.

Examples

1. Find descendants

$('div').find('span').css('color', 'red');

Result

<div>
     <span style="color: red;">...</span>
</div>

Parameters

Parameter Type Description
selector string A string containing a selector expression to match elements against.

Returns: A new SR object.