Jquery: prevent submit after for validation -


formvalidator plugin submits form after form validation. want prevent form submission after validation , call function offerpricepopup(), in function submit form. not happening form automatically submits after form validation.

  var sss = $('#submitbtn1').formvalidator({             onsuccess   : function() { console.log('success!');                          },             scope       : '#postform',             errordiv    : '#errordiv1'         });    $("#postform").on("submit", function(e){        e.preventdefault();        offerpricepopup();      }); 

thanks in advance

maybe try using different function validate. looking through documentation, looks there way check , see if form validates without submitting. found description of here (second 1 down) http://www.formvalidator.net/#advanced


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -