jQuery loop and target a specific <li>
Posted on 2011-02-14
So I have a list item with 10 items in it, I have them in a carousel.
The carousel has only 5 of the <li> viewable and in those I want to target the middle one, even when some some scrolls the carousel.
I can target the third one like this $("ul li:nth-child(3)"), but when I scroll the third <li> moves in the direction of the carousel, I need it fixed on the third viewable <li>.