JSFiddle - React, Tailwind, and code Playground

by BramVanroy

HTML

<input value="" id="one" type="text">
<input value="" id="two" type="text"> <span id="status"></span>

JavaScript

$(document).ready(function () {
    $("input").change(function () {
        if ($("#one").val() && $("#two").val()) {
            $("#status").text("Yes");
        }
        else {
            $("#status").text("");
        }
    });
});