1setTimeout(function(){
2 console.log("hello");
3}, 3000); //wait for atleast 3 seconds before console logging
1$(".submit_wide").click(function () {
2 $(this).val('Please wait..');
3 $(this).attr('disabled', true);
4 setTimeout(function() {
5 $(this).attr('disabled', false);
6 $(this).val('Submit');
7 }, 2000);
8});