if($(this).css(\"background-color\")==Crimson)
is this correct ? .css(\"background-color\",\"white\") will change the color, but I don\'t want t
just use below line
if($(this).css("background-color")=="crimson")
as css("background-color") attribute result will be in small letters . so if you will compare with capital obviously it will return false. :) Small trick hope that work
css("background-color")