jquery - select and change property of all elements with css("color") of a certain value

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-03-28T09:51:25Z Indexed on 2010/03/28 9:53 UTC
Read the original article Hit count: 203

Filed under:
|
|

How can I find all elements on a page which have a color of "blue"?

alert($("* [color=blue]").attr("id"));

The above example does not work. Please recognize that color is a CSS attribute. I'm certain it is possible I just cannot figure out the correct method to do so.

© Stack Overflow or respective owner

Related posts about css

Related posts about stylesheet