The find method
The find method searches for elements within elements already found.
Syntax
Search by selector:
.find(selector);
You can search not only by selector, but also by DOM element or jQuery object:
.find(jQuery object or DOM element);
Example
Let's find all div tags, prepend them with '!' using prepend, then find all paragraphs inside them using find and prepend them with '?':
<div>
<p>text</p>
<p>text</p>
<p>text</p>
</div>
<div>
<p>text</p>
<p>text</p>
<p>text</p>
</div>
$('div').prepend('!').find('p').append('?');
HTML the code will look like this:
<div>
!
<p>text?</p>
<p>text?</p>
<p>text?</p>
</div>
<div>
!
<p>text?</p>
<p>text?</p>
<p>text?</p>
</div>