JSFiddle - React, Tailwind, and code Playground

HTML

<form id="wrapper">
    <input id="test" type="text" value="yeahyeah" />
    <input id="test2" type="text" value="yeahyeah" />
    <input id="test3" type="text" value="yeahyeah" />
</form>

JavaScript

function test(value) {
$('#wrapper').find("input[value='" + value + "']").each(function(){
            return alert( this.id )
});
}
                                                        
                                                        
$('input').blur(function(){                                                    
test('yeahyeah')}
    )