$('#myform').submit(function() { // DO STUFF... return true; // return false to cancel form action });
<form id="myform"> ... </form>