// 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);
});
$('#Button').prop('disabled', true);
Code Example |
---|
Html :: italic in html |
Html :: make checkbox required |
Html :: how to make html text bold |
Html :: ocultar div css |
Html :: how to make a username and password in html |
Html :: ionic select |
Html :: less css |
Html :: bootrsrap |
Html :: html small text |
Html :: hypertext markup language |
Html :: label input html |
Html :: html if else statement example |
Html :: best html emmet extension for vs code |
Html :: modal pop up html css |
Html :: how to set a var in js to be a download |
Html :: full height div inside td |
Html :: search input html with icon |
Html :: HTML how to create texts in body |
Html :: html code tag |
Html :: basic html boilerplate |
Html :: add html to page chrome extension |
Html :: game engine |
Html :: table design in html |
Html :: div html |
Html :: bootstrap sweetalert |
Html :: html gif not showing |
Html :: html elements list explained |
Html :: html lorem ipsum |
Html :: html popup form |
Html :: html code for text link new window |