JSFiddle - React, Tailwind, and code Playground
by George Batt
HTML
<div style='width:20px; height:20px; background-color:#0000FF'></div>
JavaScript
$('div').filter(function(){
return $(this).css('background-color') == 'rgb(0, 0, 255)';
}).css({'background-color':'#F00'});