Getting jquery to delay after adding a class
<p>I want a script to halt before continuing after adding a class, below are two attempts that seem to fail. </p>

<pre><code> window.setTimeout($("#"+item).addClass("highlight"), 5000 );

 $("#"+item).addClass("highlight").delay(5000);
</code></pre>

<p>Where am I going wrong here?</p>
