Thursday, September 29, 2011

eq(Number)

eq(Number pos) returns jQuery
Reduce the set of matched elements to a single element. The position of the element in the set of
matched elements starts at 0 and goes to length - 1.
Example:

$("p").eq(1)
HTML:
<p>This is just a test.</p><p>So is this</p>
Result:
[ <p>So is this</p> ]

No comments:

Post a Comment