title: Jquery Delay After Click
body: <p>I'm creating a web app...</p>
  
  <p>i got a kind of game, my idea is when the user completes each level appears a dialog box with some information, it is fine.</p>
  
  <p>Now my issue is i want to show this message 5 seconds after the user clicks on the finish button.</p>
  
  <p>thats my code:</p>
  
  <pre><code>$('#option-main-menu').click(function(){
          target.append('\
              &lt;div id="confirm"&gt;\
                  &lt;h1&gt;Are You Sure Want to Exist?&lt;/h1&gt;\
                  &lt;a href="#" id="dialog-confirm"&gt;Yes&lt;/a&gt;&lt;a href="#" id="dialog-cancel"&gt;No&lt;/a&gt;\
              &lt;/div&gt;\
          ');
      });
  </code></pre>
  
  <p>also i tryed with <code>append().Delay(10000)</code> but does not work.</p>
  
  <p>Thanks in advance.</p>