JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text" value="asdsad">
</div>
JavaScript
//Takes all empty inputs
var emptyInputs = [];
$("div input[type='text']").each(function(){
if($(this).val() == '')
emptyInputs.push($(this))
});
console.log(emptyInputs);
//takes only first empty input
var firstEmpty = $("div input[type='text']").filter(function() { return $(this).val() == ""; });
console.log(firstEmpty);