jQuery: setInterval function stops working without reason
<p>I've problem with setInterval() function.</p>

<p>I want the text to change color every few seconds (please don't ask me why).
I came up with an idea to use jQuery setInterval() function to achieve that, but it doesn't work as I would expect.</p>

<p>The HTML:</p>

<pre><code>&lt;a href="skup" id="highlight"&gt;Highlighting text&lt;/a&gt;
</code></pre>

<p>The CSS:</p>

<pre><code>a#highlight{
    color: #000000;
    text-decoration: none;
}
</code></pre>

<p>And the JS:</p>

<pre><code> setInterval(function() {
    $('#highlight').css('color','#F79239');

    setTimeout(function(){$('#highlight').css('color','#000000');},2000);

}, 2000);
</code></pre>

<p>jsFiddle link: <a href="http://jsfiddle.net/wbupY/" rel="nofollow">http://jsfiddle.net/wbupY/</a></p>

<p>As you can se the function stops working after few changes of color.
What could be the reason for this?</p>

<p>Or maybe you can suggest some other solution?</p>
