I know this is an old question, and similar questions (solved) are even more complicated. But I've tried and couldn't figure it out myself.
I have
<div style="color:white; padding:10px">Text</div>
I want to change its color to red:
div[style*="color:white"]{color:red}
$('div').filter(function() {
return $(this).css('color') == 'white';
}).css("color", "red");
I tried both css and javascript, with or without whitespace, use either hex or RGB color code.
console.logoralert? You'll immediately see what's happening...console.log($(this).css('color'))