prevent default for form code example Example: input submit prevent default Click to copy$("#cpa-form").submit(function(e){ return false; });