JQuery Autocomplete, populate with data from pHp json

前端 未结 4 665
鱼传尺愫
鱼传尺愫 2021-01-07 09:39

I am returning a JSON encoded array: echo(json_encode($data)); from php and I would like it to populate the suggest box from JQuery autocomplete. I\'m using thi

4条回答
  •  余生分开走
    2021-01-07 10:38

    Maybe something wrong with the source parameter. Should it be '/Searchtest.php'?

    http://api.jqueryui.com/autocomplete/#option-source

提交回复
热议问题