Saturday, August 26, 2017

Unknown

How to prevent page from reloading after form submit?




You can prevent the form from submitting with
$("#prospects_form").submit(function(e) {
    e.preventDefault();
});
Of course, in the function, you can check for empty fields, and if anything doesn't look right, e.preventDefault() will stop the submit.


About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a hug of information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :