I have the problem that the first time my dialog opens my autocomplete is shown in front and everything is fine, but if I close the dialog and open it again without reloading the page, the autocomplete is left behind the dialogue.
This is my autocomplete code:
/*Inicia Autocomplete Header Puesto*/
$( function(){
$("#puesto_new").autocomplete({
source: 'auto_header_puesto.php',
minLength:3,
select:function(event, data){
var id = data.item['id'];
$("#id_header_puesto").val(id);
}
});
});/*Termina Autocomplete Header Puesto*/
And I have this in my CCS:
.ui-autocomplete {
position: absolute;
z-index: 2006;
overflow: auto;
}
I have been testing with different value in my z-index but it is still being left behind.