JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<input type="text" />
<input type="text" />
<input type="text" value="not empty" />
<button id="calculateAll">Calculate</button>
</div>
CSS
.hl {
border-color: #BE1E2D
}
JavaScript
$('#calculateAll').click(function() {
$('.container input[type="text"]').filter(function() {
return this.value === '';
}).addClass('hl');
});