JSFiddle - React, Tailwind, and code Playground
by John Doe
HTML
<input id="text">
<input id="send" type="button" value="send"/>
<div id="message"></div>
<input id="prev" type="button" value="Prev"/>
<input id="next" type="button" value="Next"/>
JavaScript
$('#prev').click(function(){
var button = $(this);
button.prop('disabled', true);
setTimeout(function() {
button.prop('disabled',false);
},1000);
});
$('#next').click(function(){
var button = $(this);
button.prop('disabled', true);
setTimeout(function() {
button.prop('disabled',false);
},1000);
});