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