CSS Color property
CSS Color property
I am trying to access the 'color' property of a field and I get the result in terms of rgb in case of Firefox and Chrome and IE returns the hex value. Is there a standard way to do this so that I do not need to do the browser check?
if ($('#Address').css('color') == '#aaa') {
alert('Executes in IE');
}
else if ($('#Address').css('color') == 'rgb(170, 170, 170)') {
alert('Executes in FF and Chrome');
}