jquery-tokeninput

What should be the correct response from web service to display the Jquery token input results?

跟風遠走 提交于 2019-11-26 11:40:45
问题 I am using a Jquery Token Input plugin. I have tried to fetch the data from the database instead of local data. My web service returns the json result is wrapped in xml: <?xml version=\"1.0\" encoding=\"utf-8\"?> <string xmlns=\"http://tempuri.org/\">[{\"id\":\"24560\",\"name\":\"emPOWERed-Admin\"},{\"id\":\"24561\",\"name\":\"emPOWERed-HYD-Visitors\"}]</string> I have checked in the site http://loopj.com/jquery-tokeninput/ which says that the script should output JSON search results in the