Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- //form
- $("form").submit(function() {
- $.ajax({
- type: "POST",
- url: "mail.php",
- data: $("form").serialize()
- }).done(function() {
- setTimeout(function() {
- var inst = $('[data-remodal-id=modal]').remodal();
- inst.close();
- }, 100);
- var inst = $('[data-remodal-id=modal2]').remodal();
- inst.open();
- setTimeout(function() {
- var inst = $('[data-remodal-id=modal2]').remodal();
- inst.close();
- }, 4000);
- console.log($("form").serialize() );
- });
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement