The position of the element in the set of matched elements starts at 0 and goes to length - 1.
Number position : The index of the element to select.
Example:
Reduces the selection to the second selected element.
$("p").eq(1)
<p>This is just a test.</p><p>So is this</p>
No comments:
Post a Comment