1
You guys, all right? I made a script in jQuery ui that uses Autocomplete in a search bar, the code works but when select appears with the options my header is over, what can be? Thank you
//JQUERY UI CODE
$(function () {
var Categorias = [
"Doces",
"Bebidas",
"Hortifruti",
"Frios e laticínios",
"Higiene",
"Marcearia",
"Pães"
];
$("#busca").autocomplete({
source: Categorias
});
});
//html code
<input class="ui-widget" type="text" name="busca" id="busca" style="display:none;" title="pesquisar" placeholder="Pesquise o seu produto" />
<button id="buscar_botao" style="display:none;">Buscar</button>
//CSS
input#busca {
margin-top: 24px;
width: 717px;
border-radius: 5px;
border: none;
height: 41px;
position: absolute;
right: 165%;
padding-left: 20px;
}
button#buscar_botao {
width: 100px;
height: 41px;
border: none;
margin-top: 24px;
border-radius: 5px;
background: #f3c705;
cursor: pointer;
font-family: "Oswald",sans-serif;
position: absolute;
right: 130%;
}
Post a minimal and verifiable example, with what you posted you can not reproduce the problem
– user60252