title: Using $(this) in setTimeout();
body: <p>I want to set timeouts dynamically in jQuery. The dynamically set timeout functions need to use $("this"), but I can't seem to get it working.</p>
  
  <p>An exmple:</p>
  
  <pre><code>$("div").each(function(){
      var content = $(this).attr('data-content')
      setTimeout("$(this).html('"+content+"')",$(this).attr('data-delay'));
  });​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/qmhmQ/" rel="noreferrer">http://jsfiddle.net/qmhmQ/</a></p>
  
  <p>What is the best way to do this?</p>