detect on submit jquery and prevent page reload code example
Example: jquery submit refresh page stop
$("#prospects_form").submit(function(e) {
e.preventDefault();
});
$("#prospects_form").submit(function(e) {
e.preventDefault();
});