SyntaxFix
Write A Post
Hire A Developer
Questions
You can use jQuery's .eq() method to get the element with a certain index.
.eq()
$('ul li').eq(index).css({'background-color':'#343434'});