[jQuery] Access <li> by item in the array
Is it possible to target certain <li> in an unordered list by index
with jQuery? I thought maybe I could use .index but was not able to
get the syntax right.
I thought maybe something like this would work but is has not:
$("#mycarousel > li").index(i).css("margin-right", "5px");