jquery detect a form submit code example Example: when a form is subbmited jquery $("#myform").submit(function(e) { })