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 :: how to change the backgroung of one button when click the other one 
Javascript :: html onrightclick 
Javascript :: UnhandledPromiseRejectionWarning: SequelizeDatabaseError: type "enum" already exists 
Javascript :: patch if else use 
Javascript :: multiple parameters in url Servlet 
Javascript :: add operator in javascript 
Javascript :: Switching words in a string using replace 
Javascript :: Merge Arrarys of Object of Any size 
Javascript :: modal in react 
Javascript :: occurences of special character in a string javascript 
Javascript :: aws lambda create 
Javascript :: navigate between files in react js 
Javascript :: unban command discord.js v12 
Javascript :: test command in node js 
Javascript :: sintaxis map javascript 
Javascript :: how to add datepicker in appended input 
Javascript :: python faker json 
Javascript :: parse youtu.be url and get time 
Javascript :: error number:-1,state:0,class:20 
Javascript :: cypress replace response part 
Javascript :: SHOPIFY STORE FRONT PASSWORD 
Javascript :: (error) => { console.log(error); } 
Javascript :: getComments 
Javascript :: angular pipe to capitalize all letters 
Javascript :: how to difference of arrey object 
Javascript :: what is jsonpickle in python 
Javascript :: js set height of element 
Javascript :: metadata parser react 
Javascript :: react.js form 
Javascript :: how to style on-click in react/ vuejs router 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =