title: How do I show a confirmation dialog before submitting a form using the jQuery ajax method?
body: <p>I am using jquery ajax to delete a customer from a table. How would I show a confirmation box before submitting the form? I would preferably like to use jQuery's dialog.</p>
  
  <p>I have seen questions like this before but none of them have helped.</p>
  
  <p>This is my code:</p>
  
  <pre><code>    $.ajax({
          type: "POST",
          url: "delete/process.php",
          data: "delcustomerid="+ delcustomerid,
          success: refreshTable
      });
  </code></pre>