Im trying to build a tabbed content box, and im wondering if its possible that i can disable 1 link with a specific class, such as ‘disabled’
I read somewhere about a function called preventDefault, would this work?
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 can disable click event by returning false. like,
Also, I’ve updated your fiddle: http://jsfiddle.net/Ssr5W/1/
EDITED
and of course, preventDefault would work 🙂
fiddle: http://jsfiddle.net/Ssr5W/2/