JSFiddle - React, Tailwind, and code Playground
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;
});