prevent form from submit jquery and then sumit code example
Example 1: jquery prevent form submit
//option A
$("form").submit(function(e){
e.preventDefault();
});
Example 2: when a form is subbmited jquery
$("#myform").submit(function(e) {
})