title: Make Javascript code wait for user to click "OK" on jAlert box to submit
body: <p>Given a specific condition I would like for an alert to pop up and a message be conveyed to the user before they proceed. However I am not sure how to do this. Right now, the alert simply pops up and you barely have time to read the text before the page refreshes. Any suggestions? </p>
  
  <pre><code>if ((address != 'undefined' &amp;&amp; googleValue != "ROOFTOP") &amp;&amp;
         !(address == "" &amp;&amp; googleValue == "APPROXIMATE")) {
      jAlert("Exact request could not be processed, results have been returned at an approximate level.");
  }
  
  $("#Latitude").val(latlng.lat());
  $("#Longitude").val(latlng.lng());
  $("#formSearch").submit();
  </code></pre>