I want to select a bunch of spans in a div whose CSS contains a particular background color. How do I achieve this?
I want to select a bunch of span s in a div whose CSS
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.
if i understand the question correctly, the selector
[attribute=value]will not work because<span>does not contain an attribute ‘background-color’. you can test that out quickly to confirm it won’t match anything:given:
here’s a snippet that will work: