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

$('#wrapper').find("input[value='yeahyeah']").each(function(){

            return alert( $(this).attr("id") )

});