How to test whether an element already has an assigned color?
<p>In JavaScript using jQuery during assigning the color to an element having <code>id</code> as <code>'ID'</code> we assign as follows:</p>

<pre><code>$('#ID').css({'background-color':'#FF0000'});
</code></pre>

<p>But how to know whether the element has already been assigned a color?</p>

<p>I need to check whether the element has already been assigned the color red or not. If the color red has been assigned, I need to set some flag in JavaScript.</p>
