JSFiddle - React, Tailwind, and code Playground
HTML
<div >
<input type="text" name="name" class="delete">
</div>
<script>
$(document).ready(function(){
$('div').hover(function() {
$(this).find('.delete').show();
}, function() {
$(this).find('.delete').hide();
});
});
</script>
JavaScript
$(document).ready(function(){
$('div').hover(function() {
$(this).find('.delete').show();
}, function() {
$(this).find('.delete').hide();
});
});