how to select nth child in jquery code example
Example 1: javascript get element nth child
//you can use the css nth-child property like this:
var second-child = document.querySeletorAll('[your element name]:nth-child(2)');
Example 2: jquery get 2nd child
$(t).children('td').eq(1);
Example 3: select 2nd td jquery
$(".location table tbody tr td:first-child").addClass("black");
$(".location table tbody tr td:nth-child(2)").addClass("black");
Example 4: how to select second element in jquery
$("div:eq(1)");