【发布时间】:2014-11-07 13:24:37
【问题描述】:
json 是从动态 php 函数返回的,看起来像
[{"tagid":"1","name":"scandalous"},{"tagid":"2","name":"crime"},{"tagid":"3","name":"entertainment"},{"tagid":"4","name":"finance"}]
文本输入应使用名称字段。 自动完成被称为
$(document).on("focus", "#tagfilter", function(event) {
$(this).autocomplete({
source: "/app/processes/tags.php?f=get_json_tags"
});
});
但我无法让自动完成功能工作
为任何帮助干杯。
【问题讨论】: