Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

enable button jquery

$('#ButtonId').prop('disabled', false);
Comment

How to disable and enable a button in jquery

// 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

PREVIOUS NEXT
Code Example
Javascript :: use recursion to create a range of numbers 
Javascript :: How To Use Media Query Using Jquery 
Javascript :: jquery slim min js url 
Javascript :: npm update all packages 
Javascript :: media query js 
Javascript :: flatlist items horizontally 
Javascript :: Finished. Please run Mix again. 
Javascript :: change input placeholder text jquery 
Javascript :: discord.js v13 send embed 
Javascript :: run after 1s javascript 
Javascript :: how to get element by title js 
Javascript :: user agent javascript 
Javascript :: scroll to element jquery 
Javascript :: how to restart elasticsearch node 
Javascript :: remove commas from string javascript 
Javascript :: java sleep 1 sec 
Javascript :: remove a class after 100 milliseconds jquery 
Javascript :: style.visibility javascript 
Javascript :: jquery before form submit 
Javascript :: disable a button in javascript for a time period 
Javascript :: js if not undefined 
Javascript :: first letter capital in jquery 
Javascript :: 1 line unique id 
Javascript :: format money javascript commas 
Javascript :: set value in span using javascript 
Javascript :: js show span for 5 seconds 
Javascript :: js post 
Javascript :: javascript disable input 
Javascript :: check if path is folder js 
Javascript :: how show piece of long text in javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =