jQuery .eq() selector

0 votes
196 views
added May 4, 2018 in jQuery by LC Marshal Captain (25,790 points)
//.eq(2) of 5 divs = 3rd div
$('body').find('.element').eq(2).addClass('blue');
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...