【发布时间】:2013-04-09 09:47:44
【问题描述】:
自动完成灯。 谁能帮我。如果自动编译什么都不返回(对象还不存在),我想显示按钮“添加”。我在哪里可以检查从后端自动完成的内容。
类似的东西
$('#myauto_field').yourlabsAutocomplete({
fetch: function() { //Override fetch function
//call fetch from jQuery
//get data and see is it empty or note. If empty show button.
}
})
非常感谢。
【问题讨论】:
标签: jquery django django-autocomplete-light