Materialize autocomplete with dynamic data in jquery ajax

后端 未结 5 1041
渐次进展
渐次进展 2020-12-30 15:16

I\'m using materialize ui in an ASP.Net MVC application and I\'m using an autocomplete control with dynamic data.

Here is my code,

5条回答
  •  再見小時候
    2020-12-30 16:13

    Not very fancy, but give it a try:

    $(function () {
        $.ajax({
            type: 'GET', // your request type
            url: "/Home/GetData/",
            success: function (response) {
                var myArray = $.parseJSON(response);
                var dataAC = {};
                for(var i=0;i

提交回复
热议问题