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
Post a Comment