title: Submit form - cach after submited
body: <p>I am trying to post the form from modal. To keep the current page, I target post to the iFrame.</p>
  
  <p>Which trigger is triggered after posting the form? Or any other solution to close modal after post?
  OnSubmit, as seen in the code, do not work.</p>
  
  <pre><code>        &lt;div class="modal-body"&gt;
              &lt;form method="post" id="modalForm" action="/Test/TestForm" target="myframe"&gt;
                  &lt;input type="text" name="id" required /&gt;
                  &lt;input type="text" name="name" required /&gt;
                  &lt;input type="submit" value="Post" onsubmit="alert('after post - close modal!');" /&gt;
              &lt;/form&gt;
          &lt;/div&gt;
  </code></pre>