I am having a small problem to do this work.
Correct server response request with Jason though typeahead only displays the first letter of my returned result. For example if I type it will be displayed:
Kashmir
K
K
Can you help me?
Here typehead ({source: function (typeahead, query) {return $ .post ('getUser', {query: query}, function (data)) {return typeahead.process (data) ;});}});
and my html
& lt; Input autocomplete = "off" type = "text" size = "16" id = "appendedInputButton" class = "user" data-provided = "typeahhead" & gt; I am using the following code
Thank you.
If the server is responding to the object with the 'contact' feature, try it: / P>
$ ('.user') .typeahead ({source: function (typeahead, query) {return get $ .post ('getUser', {query: query}, function (data) { Return typeahead.process (JSON.parse (data))}}}, property: 'contact'});
Comments
Post a Comment