submit button on submit prevent default code example
Example 1: prevent button from submitting form
function myFunc(e){
e.preventDefault();
}
Example 2: input submit prevent default
$("#cpa-form").submit(function(e){
return false;
});