Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- // event.preventDefault();
- alert('jquery loaded');
- $(".contact1-form-btn").click(function() {
- alert('submit button clicked');
- $(this).addClass("loading");
- alert('before first setTimeout');
- setTimeout(function() {
- alert('im within first setTimeout');
- $(this).addClass("hide-loading");
- // For failed icon just replace ".done" with ".failed"
- $(".done").addClass("finish");
- }, 3000);
- alert('before second setTimeout');
- setTimeout(function() {
- alert('im in second setTimeout');
- $(this).removeClass("loading");
- $(this).removeClass("hide-loading");
- $(".done").removeClass("finish");
- $(".failed").removeClass("finish");
- }, 5000);
- alert('after second setTimeout');
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement