Currently, I am in the process of implementing the AutoSuggest plugin by Dew Wilson to retrieve JSON data from the server and showcase the results on my user interface. The response returned looks something like this:
[{"id":1,"surname":"Surname","forename":"Forename",
"address":{"id":5,"houseNameOrNumber":"357","addressDetail":"",
"postCode":"HD3 4GR"},"gender":"F","age":56,"yearOfBirth":1953}]
My goal is to display the following details in the auto suggestion box:
Surname, Forename
357, HD3 4GR
F, 56, 1953
I would appreciate any assistance in using the plugin to exhibit the aforementioned information in the autosuggest box.
Based on the code snippet provided below that fetches the response from the server, it seems that additional modifications might be necessary for it to function correctly:
$("input[type=text]").autoSuggest("http://mysite.com/path/to/script",
{minChars: 2, matchCase: true});
Thank you in advance for your help.