Jquery on form submit after next page load
<p>I am trying to write an alert jquery function using jquery alert.  What I basically want to do is submit a form, wait for the page to reload, and then show an alert.  However, I am having trouble trying to organize this.  Here is my code.</p>

<pre><code>$("input.auto").click( function() {
 $('#form').on("submit", function(){
   $(document).ready( function() {
      jAlert('Example of a basic alert box in jquery', 'jquery basic alert box');
   });
 });
});
</code></pre>

<p>Right now the alert doesn't wait for the page to reload and just shows right after clicking.  How can I get around this?</p>