jquery get child div
$(this).children('div').show();
jquery get child div
$(this).children('div').show();
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>
jquery find tag and class
$(".txtClass") => getElementsByClassName()
$("#childDiv2 .txtClass") => getElementById(),
then getElementsByClassName()
$("#childDiv2 > .txtClass") => getElementById(),
then iterate over children and check class
$("input.txtClass") => getElementsByTagName(),
then iterate over results and check class
$("#childDiv2 input.txtClass") => getElementById(),
then getElementsByTagName(),
then iterate over results and check class
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