title: Keyup only after last key with jquery
body: <p>I'm coding a simple script to extract database informations on input keyup event.</p>
  
  <p>The problem i have is that the keyup event is always repeated everytime the user press a key. How can i make it working only after the last key pressed?</p>
  
  <p>I think i should use a function like setTimeOut() after every keyup, But i don't know how... can you make me a simple example please?</p>
  
  <p>Sorry for my bad english :)</p>
  
  <p>Here is what i was trying to do:</p>
  
  <pre><code>$("input").keyup(function()
  {
      var timer=setTimeout(function() {
      }, 1000);
      if(!timer)
      {
          //do .post ajax request
      }
  });
  </code></pre>