JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="test1" />
<input type="text" name="test2" value="blah2" />
<button>test</button>
JavaScript
$(function() {
$('button').bind('click',function() {
$('input:text').css('background','none');
$('input:text').not('[value]').each(function() {
$(this).css('background','salmon');
});
});
});