Organizational Research By

Surprising Reserch Topic

how to get nth jquery element


how to get nth jquery element  using -'jquery'

asked Sep 29, 2015 by mcasudhir
0 votes
3 views



Related Hot Questions

1 Answer

0 votes

You can use the :eq selector, for example:

$("td:eq(2)").css("color", "red"); // gets the third td element

Or the Traversing/eq function:

$("td").eq(2).css("color", "red");

Also, remember that the indexes are zero-based.

answered Sep 29, 2015 by tseetha

...