Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

enable button

// disable button using prop.

$(".button").click(function(){
  // disable button
  $(this).prop('disabled', true);

  // do something

  // below code enables button clicking after two seconds.
  setTimeout(() => {
    // enable button
  	$(this).prop('disabled', false);
  }, 2000);
});
Comment

enable html button

$('#Button').prop('disabled', true);
Comment

button enabled

/* Selects any enabled <input> */
input:enabled {
  color: blue;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to run react builed version 
Javascript :: anchor link issue with fixed header css js 
Javascript :: js length of longest array in 2d array 
Javascript :: reverse array javascript 
Javascript :: express redirect with post data 
Javascript :: safeAreaProvider 
Javascript :: json minecraft 
Javascript :: javascript get data attribute value 
Javascript :: javaScript Math.log10() Method 
Javascript :: substr() javascript 
Javascript :: jquery replace text in div 
Javascript :: copy text on button click in jquery 
Javascript :: what is polyfills in angular 
Javascript :: js get words first letter 
Javascript :: javascript auto scroll on bottom 
Javascript :: Remove First and Last Character 
Javascript :: how to convert seconds in hours minutes and seconds js 
Javascript :: jqery first img src 
Javascript :: javascript how to extract a value outside function 
Javascript :: jquery get all value from class 
Javascript :: discord js 
Javascript :: midpoint formula javascript 
Javascript :: react router base url 
Javascript :: get minutes and seconds from seconds in js 
Javascript :: settimeout javascript 
Javascript :: check date js 
Javascript :: regrex match emails 
Javascript :: js get english alphabet 
Javascript :: js wait for element to load 
Javascript :: react-native-infinite-scroll-with-flatlist 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =