Color flash in Jquery?
<p>I am working on a JQuery, which hides &amp; shows a particular element whenever user checks a box. I want to do a color flash on the element which is changed from hidden to visible, so that user knows where it is.</p>

<p>I tried doing this </p>

<pre><code>jQuery("#login-form").show()
                     .css({backgroundColor: "red"})
                     .delay(2000)
                     .queue(function() {
                         jQuery("#login-form").css({backgroundColor: "#FFFFFF"});
                     });
</code></pre>

<p>but it works for the first time only, after then it just stops. Any ideas?</p>
