I get color value with jQuery with .css(\'color\'), and then I know color that it should be.
How can I compare color value that I get from jQuery with
Here is an approach that should work on all browsers using JQuery:
on your HTML page. (Creating the dummy element dynamically with JQuery does not work for named colors)$('#dummy').css('color','black');i.e.
if($('#element').css('color') === $('#dummy').css('color')) {
//do something
}