Hi
I have a ul list and i know index of all the li’s. If i want to add a class to 7th index, how will i do that? More specifically, how will i select an element using index?
Hi
I have a ul list and i know index of all the li’s. If i want to add a class to 7th index, how will i do that? More specifically, how will i select an element using index?
By using either the eq selector or the [url=“http://api.jquery.com/eq/”]eq method.