empty().show(); $.each(results, function(i,result){ var html = '<div class="autosuggest_item" align="left"><!--//<a href="/'+result.dst+'" style="float:right;width:16px;height:16px;"><img src="/sites/all/modules/autosuggest/clear.gif"></a>//--><a href="/'+result.dst+'"><span class="itemtitle">'+result.title+'</span></a></div>'; $("#autosuggest").append(html); }); $("#autosuggest .autosuggest_item .itemtitle").highlight(query); } else { $("#autosuggest").empty(); } active = false; } }); } $(document).ready(f