[autocomplete] wrong result
Hi, i have this autocomplete:
$('#str_cerca_auto').autocomplete(
'/handler/get_articoli_suggeritore.ashx',
{
delay: 5,
minChars: 1,
matchSubset: false,
matchContains: false,
cacheLength: 10,
autoFill: false
}
);
$('#str_cerca_auto').result(function (event, data, formatted) {
if (data) {
if (data[1] != "0") {
aggiungi_costo(data[1]);
}
}
})
search works fine, but when i click on 1 result the function "aggiungi_costo(n)" fire two times.
Why??
i use Firefox 3
Thanks!