2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 14:50:57 +00:00

Merge pull request #187 from delizin/patch-1

Update readme.md
This commit is contained in:
Tomas Kirda 2014-04-19 16:20:12 -05:00
commit 2874ec2d8d

View File

@ -119,11 +119,11 @@ Response from the server must be JSON formatted following JavaScript object:
{
// Query is not required as of version 1.2.5
query: "Unit",
suggestions: [
{ value: "United Arab Emirates", data: "AE" },
{ value: "United Kingdom", data: "UK" },
{ value: "United States", data: "US" }
"query": "Unit",
"suggestions": [
{ "value": "United Arab Emirates", "data": "AE" },
{ "value": "United Kingdom", "data": "UK" },
{ "value": "United States", "data": "US" }
]
}
@ -132,8 +132,8 @@ and onSelect callback. Alternatively, if there is no data you can
supply just a string array for suggestions:
{
query: "Unit",
suggestions: ["United Arab Emirates", "United Kingdom", "United States"]
"query": "Unit",
"suggestions": ["United Arab Emirates", "United Kingdom", "United States"]
}
## Non standard query/results