Run
Online Code Editor
It is an example of using the first() method.
span1
span2
span3
span4
Click the following button to get the first span element.
Click me