Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery validation stop form submit

$('#vendorDerails').validate({
  submitHandler: function(form) {
    var formData = $(this).serialize();
    console.log(formData);
  }
});

Remove //form.submit() line under submitHandler

==========*****************************


//or another method is  =================================
 $('#vendorDerails').submit(function(e) {
            e.preventDefault();
        });
 
PREVIOUS NEXT
Tagged: #jquery #validation #stop #form #submit
ADD COMMENT
Topic
Name
3+7 =