Guest User

Untitled

a guest
Jan 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. .on('success.form.bv', function(e) {
  2. $('#success_message').slideDown({ opacity: "show" }, "slow") // Do something ...
  3. $('#reg_form').data('bootstrapValidator').resetForm();
  4.  
  5. // Prevent form submission
  6. e.preventDefault();
  7.  
  8. // Get the form instance
  9. var $form = $(e.target);
  10.  
  11. // Get the BootstrapValidator instance
  12. var bv = $form.data('bootstrapValidator');
  13.  
  14. // Use Ajax to submit form data
  15. $.post($form.attr('action'), $form.serialize(), function(result) {
  16. console.log(result);
  17. }, 'json');
  18. });
Add Comment
Please, Sign In to add comment