js preventdefault submit code example
Example 1: javascript prevent form submit
<form name="foo" onsubmit="return false">
Example 2: event preventdefault
event.preventDefault()
Example 3: input submit prevent default
$("#cpa-form").submit(function(e){
return false;
});