JSFiddle - React, Tailwind, and code Playground
HTML
<div id="hover-1">
<input type="hidden" class="text_page_title">
</div>
<div id="hover-2">
<input type="" value="test" class="text_page_title"/>
</div>
JavaScript
$("#hover-2").find('input.text_page_title').val('foo');