javascript delay 1 second
snippet in javascript

settimeout js

user7465


 setTimeout(function(){ alert("Hello"); }, 3000);

 //1000ms = 1 second

javascript settimeout

user5315


 setTimeout(function(){ alert("Hello"); }, 3000);
 

javascript delay 1 second

user4951

//The delay is written in milliseconds, so 1 second = 1 x 1000 = 1000
 setTimeout(function(){ alert("Hello"); }, 1000);
 

javascript wait 1 second

user7388

setTimeout(() => {console.log('1 second finished!')}, 1000);

add set time out in jquery

user1688

$(".submit_wide").click(function () {
    $(this).val('Please wait..');
    $(this).attr('disabled', true);
    setTimeout(function() { 
        $(this).attr('disabled', false);
        $(this).val('Submit');
    }, 2000);
});