JSFiddle - React, Tailwind, and code Playground

by helgatheviking

HTML

<form>
    <input id="text" type="text" name="countdown" value="10" />
</form>

JavaScript

$( "#text" ).load(function() {
  // Handler for .load() called.
    $(this).doTimeout( 'text-type', 1000, function(){
        $(this).val( this.val() - 1 );
    });
    console.log('bacon');
});
  
/*

$('form input').keyup(function(){
  $(this).doTimeout( 'text-type', 250, function(){
    $('#text-type').text( this.val() || default_text );
  });
});
*/