<div class="button_flex">
<button class="btn btn-warning buttonClick">Кнопка 1</button>
<button class="btn btn-warning buttonClick">Кнопка 2</button>
<button class="btn btn-warning buttonClick">Кнопка 3</button>
</div>
.button_flex{
display: flex;
justify-content: space-around;
margin-top: 50px;
}
$('.buttonClick').click(function (e) {
e.preventDefault();
alert($(this).text())
$('.buttonClick').attr('disabled', true);
setTimeout(() => {
$('.buttonClick').attr('disabled', false);
}, 5000);
});