I am having a hard time trying to figure out how to properly select a class inside the menu.
It worked fine until I put the menu in a ul. Can anyone tell me what is going on and how to fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure. The problem is that you’re calling
indexon the link, which is a child of theli, and so will always only be the first child. You want the index of its parent instead.Fixed here: http://jsfiddle.net/7XrUk/1/