[jQuery] can't check background-color

[jQuery] can't check background-color


how can i check my div background color? that condition is not seem
valid....
if($("#mydiv").css('background')=="red")