title: Looping something while holding down the mouse
body: <p><a href="http://jsfiddle.net/U9v2H/2/" rel="nofollow">http://jsfiddle.net/U9v2H/2/</a></p>
  
  <p>I want the numbers to increase every 100ms while holding down the mouse.
  What am I doing wrong?</p>
  
  <pre><code>var i = 1;
  $("#plus1").mousedown(function () {
      loopthis = setinterval(repeatingfunction(), 100);
  }).mouseup(function () {
      clearInterval(loopthis);
  });
  
  function repeatingfunction() {
      $("#testarea").append(i);
      i = i + 1;
  }
  </code></pre>