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() {
$('.btn').prop('disabled',true);
$(':text').on('change', function(){
state=0;
$(':text').each( function(){ if($(this).val()==''){state++;} })
$('.btn').prop('disabled',state>0);
})
});