title: jquery addClass - wait, delay, speed, timeout or other
body: <p>The question has been posted several times and is how to delay an addClass.</p>
  
  <p>I got this:</p>
  
  <pre><code>$("#menu ul li").hover(function(){
    $(this).addClass("hover");
  },function(){
    $(this).removeClass("hover");
  })
  </code></pre>
  
  <p>And want something similar but where the class is added after 500msek or so. Best answer so far is this one using settimeout. Maybe I just need a working example:
  <a href="https://stackoverflow.com/questions/1836105/how-to-wait-5-seconds-with-jquery">How to wait 5 seconds with jQuery?</a></p>
  
  <p>The hooverIntent will not work since it has to be an addClass.</p>
  
  <p>Br. Anders</p>
  
  <p>UPDATE: Four great answers! Thanks. I do not know why I did not think the hoverIntent would work, it can be used as seen in the answers. Actually all answers can be used each with pros and cons. I will go with the hoverIntent even though another plugin must be included. The pro for the hoverIntent is that a sensibilty can be set so not only a delay for the addClass can be set but it will first start counting when the mouse is positioned still obove the area (or not so still if sensitivety is lovered)</p>