jquery nth child
$( "ul li:nth-child(2)" ).append( "<span> - 2nd!</span>" );
jquery nth child
$( "ul li:nth-child(2)" ).append( "<span> - 2nd!</span>" );
jquery get 2nd child
$(t).children('td').eq(1);
jquery specific child by index
<div class="second">
<div class="selector" id="selFirst">Number One</div>
<div class="selector" id="selSecond">Number Two</div>
<div></div>
</div>
<script>
var index = 0
console.log($('.second').children().eq(index).text());
//Number One
</script>
select 2nd td jquery
$(".location table tbody tr td:first-child").addClass("black");
$(".location table tbody tr td:nth-child(2)").addClass("black");
how to select second element in jquery
$("div:eq(1)");
jquery select the 3rd row of a table
$('.itemTable').eq(2);
//this will grab the 3rd row of the table with the class itemTable
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us