title: delaying actions between keypress in jQuery
body: <p>How can I delay actions between keypress in jQuery.
  For example;</p>
  
  <p>I have something like this</p>
  
  <pre><code> if($(this).val().length &gt; 1){
     $.post("stuff.php", {nStr: "" + $(this).val() + ""}, function(data){
      if(data.length &gt; 0) {
        $('#suggestions').show();
        $('#autoSuggestionsList').html(data);
      }else{
        $('#suggestions').hide();
      }
   });
  }
  </code></pre>
  
  <p>I want to prevent posting data if the user continously typing. So how can I give .5 seconds delay?</p>