JSFiddle - React, Tailwind, and code Playground
by VitaliyAT
HTML
<input name = "test"></input>
JavaScript
$('input[name="test"]').css('background', 'red');
function ftest(name2) {
$('input[name='+name2+']').css('background', 'green');
}
ftest('test');