I’m attempting to addClass to an href, and then later run a function on that new class.
The problem is once the class is added, I can not get any js to work on it.
Here’s a fiddle:
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 attaching the a.live event handler before the object has the class, move the handler inside the first one, ie
This is not the best way but I hope it shows you what is wrong.