Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .on('success.form.bv', function(e) {
- $('#success_message').slideDown({ opacity: "show" }, "slow") // Do something ...
- $('#reg_form').data('bootstrapValidator').resetForm();
- // Prevent form submission
- e.preventDefault();
- // Get the form instance
- var $form = $(e.target);
- // Get the BootstrapValidator instance
- var bv = $form.data('bootstrapValidator');
- // Use Ajax to submit form data
- $.post($form.attr('action'), $form.serialize(), function(result) {
- console.log(result);
- }, 'json');
- });
Add Comment
Please, Sign In to add comment