The problem is that when I want to put myself in the search bar I hide again and I do not know how to make it stay when I'm on top of it.
<div style="display: none;" class="input-group mb-3" id="barra">
<input type="text" class="form-control" placeholder="Buscar..."/>
<div class="input-group-append">
<button class="btn btn-dark fas fa-search" type="button"></button>
</div>
</div>
The Jquery script that I have is the following:
$(document).ready(function () {
$("#buscador").hover(function () {
$("#barra").slideToggle();
});
});
The "search engine" id refers to an item in a list