title: Submitting HTML form in JQuery dialog
body: <p>I am trying to convert an existing HTML form and make it appear in JQuery dialog. I am not sure how to change the code so the data is submitted after clicking the submit buton. My code is a follows:</p>
  
  <p>Old form:</p>
  
  <pre><code>&lt;form method="post" name="callbackrequest" id="ccallbackrequest" action="action.php" onsubmit="return validateThis(this)"&gt;
  
  &lt;button type="submit" class="submit"&gt;Submit Request&lt;/button&gt;
  </code></pre>
  
  <p>New form:</p>
  
  <pre><code>buttons: {
                  "Submit": function() {
  if ( bValid ) {
  
          HERE GOES THE CODE!
  
          $( this ).dialog( "close" );
                }
  </code></pre>
  
  <p>Then there is the new form:</p>
  
  <pre><code>&lt;form class="center" method="post" name="callbackrequest" id="ccallbackrequest" action="??"&gt;
   fields listed
  no submit button
  &lt;/form&gt;
  </code></pre>
  
  <p>Any advice on how should I handle this?</p>