jquery autocomplete with json response

前端 未结 3 935
囚心锁ツ
囚心锁ツ 2020-12-02 16:02

im getting response in json, but this wont parse the json response. what m i doing wrong? i could\'nt find anything on doc http://docs.jquery.com/Plugins/Autocomplete

<
3条回答
  •  执笔经年
    2020-12-02 16:31

    $("#users-allowed").autocomplete("/people/following.json", {
      width: 320,
      dataType: 'json',
      highlight: false,
      scroll: true,
      scrollHeight: 300,
      parse: function(data) {
        var array = new Array();
        for(var i=0;i

    check dataType and parse option.

提交回复
热议问题