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