title: onSubmit of Iframe in Parent Window is possible?
body: <p>Is it possible to call an <code>onsubmit</code> function of an iframe in the parent window? I need this because I want to check when the iframe is submitting and pass some value of the iframe textbox to a textbox in parent window.</p>
  
  <p>Heres my jQuery in the parent window and <code>ExpDate</code> is the textbox in the iframe.</p>
  
  <pre><code>var expDate = $("#ExpirationDate").text();
  $('#frmAdd').on('submit', function (e) {
      e.preventDefault();
      if (expDate != null &amp;&amp; expDate != "") {;
          $('#ExpDate', window.parent.document).val(expDate);
      }
  });
  </code></pre>