Advertisement
afsarwebdev

JS popup / thank you message show for 3s

Jul 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. //Thank you message show for 3 seconds
  2. //HTML
  3. <button id="submit-reg-form" class="ic-btn" data-toggle="modal" data-target="#thankyou">Registration now</button>
  4. <div class="modal fade" id="thankyou" tabindex="-1" role="dialog" aria-labelledby="thankyouLabel" aria-hidden="true">
  5. <div class="modal-dialog" role="document">
  6. <div class="modal-content">
  7. <div class="modal-body">
  8. <h3>Thank you</h3>
  9. <span class="ic-check"><i class="icofont icofont-check-circled"></i></span>
  10. <span>Registration Successful</span>
  11. <span>You get a successful mail in your eamil </span>
  12. </div>
  13. </div>
  14. </div>
  15. </div>
  16. //JS
  17. $('#submit-reg-form').click(function(){
  18. setTimeout("$('#thankyou').modal('hide');",3000);
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement