listen to the submit of the form and prevent default code example Example: input submit prevent default $("#cpa-form").submit(function(e){ return false; });