Method first
The first method selects the first element found.
Syntax
.first();
Example
Let's find all the paragraphs, then select the first one from those found and assign it the text '!':
<p>text</p>
<p>text</p>
<p>text</p>
$('p').first().text('!');
HTML the code will look like this:
<p>!</p>
<p>text</p>
<p>text</p>