Skip to content

Commit 2c8058a

Browse files
author
Tomas Kirda
committed
Add json to supported data type list, fixes #401
1 parent f9a8634 commit 2c8058a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The standard jquery.autocomplete.js file is around 13KB when minified.
1616
###Ajax Settings
1717
* `serviceUrl`: Server side URL or callback function that returns serviceUrl string. Optional if local lookup data is provided.
1818
* `type`: Ajax request type to get suggestions. Default: `GET`.
19-
* `dataType`: type of data returned from server. Either 'text' (default) or 'jsonp', which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp.
19+
* `dataType`: type of data returned from server. Either `text` (default), `json` or `jsonp`, which will cause the autocomplete to use jsonp. You may return a json object in your callback when using jsonp.
2020
* `paramName`: Default `query`. The name of the request parameter that contains the query.
2121
* `params`: Additional parameters to pass with the request, optional.
2222
* `deferRequestBy`: Number of miliseconds to defer ajax request. Default: `0`.

0 commit comments

Comments
 (0)