Hola Amigos
necesito adicionarle un valor a los resultados que me arroja al buscar en el input
estos son los errores
Uncaught TypeError: Cannot read property 'value' of undefined
Uncaught TypeError: Cannot read property 'arti_id' of undefined
este es mi codigo
Código Javascript
:
Ver original$(function(){
$('#descripcion').autocomplete({
source : 'bus_art2.php',
select : function(event, ui){
var id=ui.item.arti_id
$.ajax({
type: "POST",
url: "buscar_prsk2.php",
data: {id : id},
success: function(retorno)
{
$("#resultados").html(retorno)
}
})
}
}).data("autocomplete")._renderItem = function (ul, item) {
return $("<li />")
.data("item.autocomplete", item)
.append("<a>"+item.value + "<span style='float:right;color:#06C'>" +item.stk1+ "<span></a>")
.appendTo(ul);
};
});
muchas gracias por cualquier ayuda que me puedan brindar
saludos