before nth child tabel jquery selector example
Example 1: select 2nd td jquery
$(".location table tbody tr td:first-child").addClass("black");
$(".location table tbody tr td:nth-child(2)").addClass("black");
Example 2: how to select second element in jquery
$("div:eq(1)");