title: html/jquery - submitting a form in iframe
body: <p>I have a form which has an iframe as target. It works well when using the classic "submit" button, but when I use Jquery to submit the form, it opens a new window and does not target in the iframe. Any suggestion on why this happens?
  Here is my code:</p>
  
  <pre><code>function formSubmit() {
    $('#formId').submit();
  }
  &lt;form name="formId" id="formId" action="ajax/submitForm.php" method="post" target="iframe_submit" tmt:validate="true"&gt;
     [...]
     &lt;input type="button" id="submit_button" value="GO" onclick="javascript:formSubmit();" /&gt;
  &lt;/form&gt;
  
  &lt;iframe style="border:none;width:0px;height:0px" id="iframe_submit" name="iframe_submit"&gt;&lt;/iframe&gt;
  </code></pre>