JSFiddle - React, Tailwind, and code Playground

by Rich Costello

HTML

<input type="text"><br>
        <input type="button" id="button" value="Click Me">

JavaScript

$('#button').attr('disabled', true);
$('input:text').keyup(function () {
    var disable = false;
       $('input:text').each(function(){
            if($(this).val()==""){
                 disable = true;                
            }
       });
  $('#button').prop('disabled', disable);
});