开发者

jquery ui autocomplete: remote source problem

开发者 https://www.devze.com 2023-02-21 22:25 出处:网络
开发者_如何转开发Im using jquery UI autocomplete. When i use a local variable as source everything works as it should.
开发者_如何转开发

Im using jquery UI autocomplete.

When i use a local variable as source everything works as it should.

var json = [{ value: "1", ... etc
...
source: json

But when i return the same source from another file, it doesnt work. I find the JSON object in firebug, but when i type

source: 'path/to/filethatreturnsjson...'

It doesnt work. Did i miss something? THanks

0

精彩评论

暂无评论...
验证码 换一张
取 消