I have the following code:
<a href="#" class="btn">
<i class="icon-thumbs-up"></i>
</a>
I need to write a jQuery selector for:
Anytime an anchor is clicked that has a tag inside of it of class=’icon-thumbs-up’, then…
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.
just use the .has() method
If the elements are changed/added dynamically.. you can use delegation
Replacing
bodywith the closest parent that is available when dom is loaded