Search
 
SCRIPT & CODE EXAMPLE
 

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);
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: .on change get value 
Javascript :: check if element is visible 
Javascript :: react get input value on button click functional component 
Javascript :: c# get value from json object 
Javascript :: javascript detect scroll to bottom of page 
Javascript :: angular ng build Maximum call stack size exceeded 
Javascript :: take only int part of number js 
Javascript :: serve a file in express 
Javascript :: javascript removing items looping through array 
Javascript :: date methods js 
Javascript :: add font awesome to vue 
Javascript :: nodejs readfile 
Javascript :: how to get id of parent element in jquery 
Javascript :: jquery on 2 events 
Javascript :: int to octal javascript 
Javascript :: node redisjson remove path 
Javascript :: adonisjs hook befor save 
Javascript :: flutter keep local storage even after is closed 
Javascript :: Could not find router reducer in state tree, it must be mounted under "router" 
Javascript :: js is prime 
Javascript :: javascript button onclick 
Javascript :: cnpj pattern js 
Javascript :: html to pdf node js background color 
Javascript :: probability density function javascript 
Javascript :: js throw error 
Javascript :: remove tr having delete icon inside jquery 
Javascript :: expo android package name 
Javascript :: - Root composer.json requires tymon/jwt-auth ^0.5.12 - satisfiable by tymon/jwt-auth[0.5.12]. 
Javascript :: instance use in_array in javascript 
Javascript :: Sequelize find sort order 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =