title: pause jQuery function for 5 seconds before script returns true and posts
body: <p>Im using jQuery to post a form to a database, before posting the HTML form to a remote server via the form action method.</p>
  
  <p>All works fine, but I am trying to build in a message pre-the server POST , so is there a way that just before my jQuery function returns true to get it to pause for 5 seconds and display a message?</p>
  
  <pre><code>    ...
      $.ajax({
          type: "POST",
          url: "myform.php",
          data: dataString,
          success: function() {
              $('#details').html("&lt;div id='post-message'&gt;&lt;/div&gt;");
              $('#post-message').html("&lt;h2 style='color:#fff'&gt;Thanks for getting in touch&lt;/h2&gt;")
              //.append("&lt;p&gt;Thank you&lt;/p&gt;")
              .hide()
              .fadeIn(1500, function() {
                  // $('#message').append("&lt;img id='tick' src='images/tick.png' /&gt;");
              });
          }
      });
      return true; 
  });
  ...
  </code></pre>
  
  <p>I ideally need a pause of 5 seconds just before the script returns true and finishes - any help much appreciated! Presently the message has no time to display as the script returns true and posts!</p>
  
  <p>Thanks</p>