146
rated 0 times
[
152]
[
6]
/ answers: 1 / hits: 134644
/ 13 Years ago, thu, january 19, 2012, 12:00:00
<div class=second>
<div class=selector id=selFirst></div>
<div class=selector id=selSecond></div>
<div></div>
</div>
How to get #selFirst using element index not the ID?
this:
var $selFirst = $(.second:nth-child(1));
console.log($selFirst);
is returning :
jQuery(div.second)
More From » jquery