Answers for "how to set timeout in jquery"

28

settimeout jquery

setTimeout(function(){ alert("Hello"); }, 3000);
Posted by: Guest on September-13-2019
0

add set time out in jquery

$(".submit_wide").click(function () {
    $(this).val('Please wait..');
    $(this).attr('disabled', true);
    setTimeout(function() { 
        $(this).attr('disabled', false);
        $(this).val('Submit');
    }, 2000);
});
Posted by: Guest on March-06-2020
4

javascript settimeout

// Redirect to index page after 5 sec
setTimeout(function(){ window.location="index"; },5000);
Posted by: Guest on July-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language