Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #set #time #jquery
ADD COMMENT
Topic
Name
6+3 =