Jquery comparing background color
<p>I am using:</p>

<pre><code>var element = $(this).parents("tr:first");

if (element.css("background-color")=="black)")
    element.animate({ backgroundColor: "white" }, 1000);
else
    element.animate({ backgroundColor: "black" }, 1000);
</code></pre>

<p>To change background color, but comparision seems to fail, I also tried:</p>

<pre><code>if (element.css("background-color")==rgb(0,0,0))
</code></pre>

<p>But the if condition seems to return false everytime?</p>
