title: Multiple counters in Javascript for loop
body: <p>Before i tear my hair out and go down the wrong path in terms of debugging. Can someone confirm that this code will do as intended. Ie. animate 5 divs to different positions:</p>
  
  <pre><code>var i, j, k;
  $('#menuButton').click(function(){
      for (i=1; j=0; k=150; i&lt;=5; i++; j+=30; k-=30){
          $('.spinner #item' + i).animate({
              left: '+=' + j,
              bottom: '+=' + k
            }, 500, function() {
              // Animation complete.
          });
      }
  });
  </code></pre>
  
  <p>When i click the <code>#menuButton</code>, nothing happens and I get this error: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token ; on the 'for()' line...</p>
  </blockquote>