title: Replace onsubmit with jquery
body: <p>I have these code below :</p>
  
  <pre><code>&lt;form name="submissions" action="/" onsubmit="window.open('', 'foo', 'width=900,height=900,status=yes,resizable=yes,scrollbars=yes')" target="foo" method="post"&gt;
  .......
  &lt;input type="submit" id="printbtn" name="printbtn" value="Print" /&gt;
  &lt;input type="submit" id="editbtn" name="editbtn" value="Edit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>* Edited *</strong></p>
  
  <p>the window.open should only happens when the Print button is clicked.
  I want to remove onsubmit() event and do it with jQuery. How can I do it?</p>