In jQuery, $("...").get(3) returns the 3rd DOM element. What is the function to return the 3rd jQuery element?
$("...").get(3)
You can use the :eq selector, for example:
$("td:eq(2)").css("color", "red"); // gets the third td element
Or the eq(int) function:
$("td").eq(2).css("color", "red");
Also, remember that the indexes are zero-based.
2.1m questions
2.1m answers
60 comments
57.0k users