JSFiddle - React, Tailwind, and code Playground

by Denis

HTML

<button id="mama">Кнопка</button>
<input id="sestra" type="text" value="Сестра"></input>

JavaScript

var i = 10;
$('#mama').click(function(){
    $that = $(this);
    $('#sestra').val(i++);
    $that.prop('disabled',true);
    setTimeout(function(){
        $that.prop('disabled',false);
    }, 5000);
});