title: jQuery using delay() with $.each() not working
body: <p>I have different classes each with a different background. I'm trying to switch background on div #elm every 2 seconds. Why is the following not delaying 2 seconds between each index. They all come in at once.</p>
  
  <pre><code>var classes = ['class1', 'class2', 'class3'];
  $.each(classes, function(index, val) {
      $('#elm').removeAttr('class').addClass(val).delay(2000*index);
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/bLHqP/" rel="nofollow">http://jsfiddle.net/bLHqP/</a></p>