JSFiddle - React, Tailwind, and code Playground

by Neal

HTML

Fill this before you continue:
<input id="a" />
<br>
<br>
Fill this after the previous input
<input id="b" disabled="disabled" />

JavaScript

$('#a').on('change keyup', function() {
    $('#b').prop('disabled', this.value === "");
});