JSFiddle - React, Tailwind, and code Playground

by James Allardice

HTML

<form action="" method="post">
<input class="hour"><input class="hour">
<input type="submit" class="submit">
</form>

JavaScript

$(".submit").click(function () {
        return $(".hour").filter(function () {
            return this.value === "";
        }).length === 0;
    });