I have a lot of div
s, some of them have a background-color: #aaa
, others have font color: #aaa
, and others border-color: #aaa
. Other div
s have different colors, it doesn't matter.
I want to change these colors (#aaa
) to #ccc
everywhere in the CSS.
I know how to change a background div
color but here this is not the problem, I have too many div
s to change them one by one.
I'm trying to find a jQuery function which will allow me to find a word (here #aaa
) and replace it by with other (#ccc
) in the CSS.
It should be like that but my code isn't correct :
$("*").if(backgroundColor == "#aaa"){replace by "#ccc"},
if(color == "#aaa"){replace by "#ccc"}, if(borderColor == "#aaa"){replace by "#ccc"}, etc..