This script is triggered once. When clicked, the button is locked. CSS properties apply. After 5 seconds, the button is automatically unlocked. But on subsequent clicks the script does not block the button and the css properties do not apply.
function timerBlock() { $(this).prop('disabled', 'false').css('cursor', 'pointer'); console.log('Кнопка разблокирована'); } $("#one-form-line").click(function() { $(this).prop('disabled', 'true').css('cursor', 'not-allowed'); console.log('Кнопка заблокирована'); setTimeout(timerBlock, 5000); });