I have numerous div
elements, some with a background-color: #aaa
, others with font color: #aaa
, and some with border-color: #aaa
. There are also div
s with various other colors.
I am looking to update these colors (#aaa
) to #ccc
throughout the CSS.
While I can change the background color of individual div
s, the issue arises from having too many to do manually.
I am attempting to locate a jQuery function that can search for a specific word (in this case #aaa
) and replace it with another value (such as #ccc
) in the CSS.
The desired code snippet should resemble the following, but my current implementation is incorrect:
$("*").if(backgroundColor == "#aaa"){replace by "#ccc"},
if(color == "#aaa"){replace by "#ccc"}, if(borderColor == "#aaa"){replace by "#ccc"}, etc..