Delay in changing background color using Jquery in iPhone
<p>I have the following code which changes the background color of a link when clicked.</p>

<pre><code>function showSelectEffect(obj) {
        $(obj).css("background-color", "#d7d7d7");
            }
</code></pre>

<p>The method is called onclick of the link as below</p>

<pre><code>&lt;a onclick="showSelectEffect(this);" href="test.html"&gt;sample text&lt;/a&gt;
</code></pre>

<p>The problem is that the highlight happens after a seconds delay and doesn't happen immediately when clicked. I've tried calling the showSelectEffect function on the onmousedown event but its still the same. Kindly let me know on how I can improve the performance.</p>
