JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="test"><br>
<input type="text" value=""><br>
<input type="text" value=""><br>
<input type="text" value="test"><br>
JavaScript
var $muutuja = $('input').filter(function(){
if (!$(this).val()) {
return true;
}
return false;
});
$muutuja.hide();