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