submit a form from a different page but run the jquery code example Example: when a form is subbmited jquery $("#myform").submit(function(e) { })