Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     //form
  3.  
  4.     $("form").submit(function() {
  5.        
  6.         $.ajax({
  7.             type: "POST",
  8.             url: "mail.php",
  9.             data: $("form").serialize()        
  10.         }).done(function() {
  11.          
  12.             setTimeout(function() {
  13.                 var inst = $('[data-remodal-id=modal]').remodal();
  14.             inst.close();
  15.             }, 100);
  16.             var inst = $('[data-remodal-id=modal2]').remodal();
  17.            
  18.             inst.open();
  19.             setTimeout(function() {
  20.                 var inst = $('[data-remodal-id=modal2]').remodal();
  21.                 inst.close();
  22.             }, 4000);      
  23.   console.log($("form").serialize()   );
  24.         });
  25.          return false;
  26.     });
  27.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement