title: setTimeout an ajax call in jquery
body: <p>Is there a way to use setTimeout in this ajax call. This is my code:</p>
  
  <pre><code>jQuery.ajax({
      type    : "POST",
      url     : dir+"all/money/myFile.php",
      data    : "page="+data.replace(/\&amp;/g, '^'),
      success : function(msg) {
      var info = jQuery('.product_overview #allinfo').html();
      var url = '&lt;a href="http://www.mySite.com/openMe/letmeview.php?preview='+msg+'.html" target="_blank" class="check_link_preview" rel="'+msg+'.html"&gt;Check Preview&lt;/a&gt;';          jQuery('.option_additional').next().find('textarea:first').text(info+url);
                  },
      complete: function() {
      jQuery('.add-to-cart button.btn-cart').delay(500).trigger('click');
  }
  });
  </code></pre>
  
  <p>I want to do something before this ajax will be triggered that is why I'll use setTimeout or something that would delay this action.</p>
  
  <p>How would I do that?</p>
  
  <p>Thanks in advance :)</p>