10 lines
230 B
JavaScript
10 lines
230 B
JavaScript
|
$(function () {
|
||
|
$('.button').click(function () {
|
||
|
button = $(this);
|
||
|
button.attr('disabled', 'disabled');
|
||
|
setTimeout(function () {
|
||
|
button.removeAttr('disabled');
|
||
|
}, 1000);
|
||
|
});
|
||
|
});
|