How do I select only <a> elements which doesn’t have the word gallery inside its id or class attribute?
How do I select only <a> elements which doesn’t have the word gallery inside
Share
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.
Try this selector:
This will select each
aelement that does not have “gallery” in either itsidor itsclassatttribute value.Or for a full ID or class name match:
This will select each
aelement that does not have “gallery” as its ID or as a class name.