the first step is to define the event in doing this for the function
.on('submit', function (event) {
and after you can stop the form submit with this code :
event.preventDefault();
the first step is to define the event in doing this for the function
.on('submit', function (event) {
and after you can stop the form submit with this code :
event.preventDefault();