jQuery $.ajax request of dataType json will not retrieve data from PHP script

前端 未结 8 981
情话喂你
情话喂你 2020-11-30 03:31

I\'ve been looking all over for the solution but I cannot find anything that works. I am trying to get a bunch of data from the database and then via AJAX autocomplete input

8条回答
  •  醉话见心
    2020-11-30 04:03

    If you are using a newer version (over 1.3.x) you should learn more about the function parseJSON! I experienced the same problem. Use an old version or change your code

    success=function(data){
      //something like this
      jQuery.parseJSON(data)
    }
    

提交回复
热议问题