I have these code below :
<form name="submissions" action="/" onsubmit="window.open('', 'foo', 'width=900,height=900,status=yes,resizable=yes,scrollbars=yes')" target="foo" method="post">
.......
<input type="submit" id="printbtn" name="printbtn" value="Print" />
<input type="submit" id="editbtn" name="editbtn" value="Edit" />
</form>
* Edited *
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?
Will this work?
UPDATE: Actually, try this out…
Should remove the onsubmit, and prevent the form from submitting…