prevent form default submit code example
Example 1: prevent button form submit
<button type="button">Button</button>
Example 2: input submit prevent default
$("#cpa-form").submit(function(e){
return false;
});
<button type="button">Button</button>
$("#cpa-form").submit(function(e){
return false;
});