I’m trying to build a simply menu with images where the selected has a opacity:1 and the other li have opacity:0.4 .
Could you tell me what I’m doing wrong please?
eg here: http://jsfiddle.net/mdamC/161/
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 have some syntax errors which are the likely culprit. Within your document ready function, use the following:
Note that this requires jQuery 1.7+ with it’s use of the
.on()API. I highly suggest this though as the use of delegated events is far more efficient.