I have a navigation menu and when ‘contact is clicked’ a div opens at the top of the DOM, I want to add an active state to contact using jQuery but for some reason cant get it working.
I’vbe made a fiddle to hopefully explain better…
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.
You are not closing your click handler. Try:
Your updated fiddle.
P.S. Hitting the “JSLint” button would have helped you to identify the problem.