[jQuery] how can i check div background color

[jQuery] how can i check div background color


this is not wworking
if($("#mydiv").css('background-color')=="red")