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/>
<button class="free">enable</button>

JavaScript

$(function() {
    jQuery.fn.extend({
        disable: function(state) {
            return this.each(function() {
                $(this).prop('disabled',state);
                return $(this);
            });
        }
    });
    
    $('.btn').disable(true);
    
    $('.free').on('click', function(){ $('.btn').each( function(){ $(this).disable( !$(this).prop('disabled') ); }) })
});