jQuery first () method
Definition and Usage
first () method returns the first element of the selected element.
Tip: To return to the last element, use the last () method.
grammar
$(selector).first()
More examples
Select <p> The first element in the set a <span> element
How to choose <p> The first element in the set <span> element.