我以这种方式使用 Jquery UI 自动完成插件
$("#home_search_top").autocomplete({
source: "/theme/site_theme/search.php",
minLength: 2,
parse: function() {
console.log("hello");
return false;
},
select: function(event, ui) {
$('#state_id').val(ui.item.id);
$('#abbrev').val(ui.item.abbrev);
}
});
$("#home_search_top").autocomplete({
source: "/theme/site_theme/search.php",
minLength: 2,
loadingClass : "res-search"
});
解析完成后如何显示或隐藏 someDiv?