JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css">
<input class="btn" type="submit" class="btn" value="My Input Submit"/>
<input class="btn" type="button" class="btn" value="My Input Button"/>
<button class="btn">My Button</button><br/>
<input type="text" />
<input type="text" />

JavaScript

$(function() {
    jQuery.fn.extend({
        disable: function(state) {
            return this.each(function() {
                $(this).prop('disabled',state);
                return $(this);
            });
        }
    });
    
    $('.btn').disable(true);
    
    $(':text').on('change', function(){ 
        state=0;
        $(':text').each( function(){ if($(this).val()==''){state++;} }) 
         $('.btn').disable(state>0);
    })
    
});