how to use jquery .delay(1000) on the same element
<p>I am trying the following but with no luck. </p>

<pre><code>$("#mydiv").addClass('spin').delay(1000).$('#mydiv').removeClass('spin');
</code></pre>

<p>Any suggestions?</p>
