JSFiddle - React, Tailwind, and code Playground

by Irvin Dominin

HTML

<input id="name" type="text" />
<input id="email" type="text" />
<a class="next">show div</a>

CSS

.next {
    display: none;
}

JavaScript

$(function () {
    $('input').change(function () {
        $('.next').toggle($("input").filter(function () {
            return this.value === "";
        }).length === 0)
    });
});