JQuery Prześlij stronę odświeżania
$("#prospects_form").submit(function(e) {
e.preventDefault(); // <==stop page refresh==>
});
7uc1f3r
$("#prospects_form").submit(function(e) {
e.preventDefault(); // <==stop page refresh==>
});
<form onSubmit="return false; // Returning false stops the page from reloading">
<button type="submit"></button>
</form>
<form onsubmit="return false;">Form stuff in here</form>
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>