I’m currently selecting all elements with class .follow-container, this is the code:
$('.follow-container').html('it's this one');
How do I only select elements that have the class and also the attribute onmousedown="alert()"
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 to mention but you should really use a data attribute instead of an unsupported
numberattribute.What about
data-number="3"instead?You could then select this using:
If you would prefer to use your attribute you could use: