This question may be old, and similar ones that were solved are even more complex. Unfortunately, I have tried and failed to figure it out on my own.
Here is the scenario:
<div style="color:white; padding:10px">Text</div>
I am looking to change the color of the text from white to red:
div[style*="color:white"]{color:red}
$('div').filter(function() {
return $(this).css('color') == 'white';
}).css("color", "red");
I have attempted both CSS and JavaScript solutions, with or without whitespace, and using either hex or RGB color codes.