Search in google jQuery prevent form from submitting code example
Example: jquery prevent form submit
//option A
$("form").submit(function(e){
e.preventDefault();
});
//option A
$("form").submit(function(e){
e.preventDefault();
});