Galera, beauty? I made a script in jQuery that uses Autocomplete in a search bar, the code works, however when it appears select with the options my header is on top, what can it be? Thank you
//JQUERYUICODE
$(function(){varCategorias=["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%;
}