Search
 
SCRIPT & CODE EXAMPLE
 

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();
        });
Comment

PREVIOUS NEXT
Code Example
Javascript :: new Map() collection in react state 
Javascript :: wait for loop to finish javascript 
Javascript :: react hook form clear form 
Javascript :: JavaScript throw with try...catch 
Javascript :: JQuery datatable with ajax, post API call hook 
Javascript :: async map js 
Javascript :: print string multiple times in javascript 
Javascript :: create multiple images in js 
Javascript :: how to prevent xss attacks in node js 
Javascript :: trim string in javascript 
Javascript :: check if the difference between two dates is more than 1 month in javascript 
Javascript :: convert % to px javascript 
Javascript :: React native calender date picker 
Javascript :: adding a if stement in jsx 
Javascript :: js object.entries with sort 
Javascript :: javascript for...of with Strings 
Javascript :: overflowy javascript 
Javascript :: how to use the map method in javascript 
Javascript :: function to count words in string 
Javascript :: js jwt decode 
Javascript :: create an empty array js 
Javascript :: perent to child data pass in angular 
Javascript :: react tailwind loading 
Javascript :: javascript training 
Javascript :: mariadb JSON_ARRAYAGG does not exist 
Javascript :: javascript on screen width change 
Javascript :: js array last element 
Javascript :: chrome dino game 
Javascript :: axios post method 
Javascript :: mongodb add 1 to field 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =