title: Why Jquery form submit event not firing?
body: <p>I am trying to submit a form through jquery. I want to get my form submit event get fired when jquery submits the form. </p>
  
  <p>But when form is submitted successfully, submit event handler is not called successfully.</p>
  
  <p>Below is the code :</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
  &lt;title&gt;forms&lt;/title&gt;
  
  &lt;script src="../common/jquery-1.6.2.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $('#testform').submit(function() {
      $.post($(this).attr("action"), $(this).serialize(), function(html) {
          $("#menu").html('&lt;object&gt;'+html+'&lt;/object&gt;');
      });
      return false; // prevent normal submit
  });
  
  &lt;/script&gt; 
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
      &lt;form id="testform" action="&lt;%=getURL%&gt;" method="post" &gt;
          &lt;!-- &lt;input type="hidden" value="DocQrySetup" name=form&gt;
          &lt;input type="hidden" value="bdqdb1" name=config&gt;--&gt;
          &lt;input type="hidden" value="test" name=otherParams&gt;
      &lt;/form&gt;
  
      &lt;script language=javascript&gt;
          $('#testform').submit();
      &lt;/script&gt;
  
  &lt;div id="menu" style="position:relative; bottom: 0; overflow:hidden;"&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I searched all the forums but was not able to get the resolution.</p>