JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>
<input type="button" value="1" />
<input type="button" value="2" />
<input type="button" value="3" />
<input type="button" value="4" />
</li>
</ul>
<div class="gizle">gizlenecek sey</div>
JavaScript
$('input').each(function() {
$(this).click(function() {
$(this).parent().parent().next('.gizle').hide();
});
});