The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Tricky :nth-child question Re: [Solved] Tricky :nth-child question


@chriscoyier I was actually just trying out the $('li')[3].addClass('second-last'); becuase I saw you use it lol, it wasn’t actually meant for @rzea but thanks for the array info =)

P.S. I’ve been quite interested in the “least expensive” methods lately and I was wondering, do you know if $('li').eq(0) less expensive than $('li:first'). I remember coming across a site that allowed you to test that kind of thing in different browsers, but I’ve lost the url :/