local input = window:jq('.autocomplete')
input:autocomplete({
serviceUrl = '/ajax/suggest/banks',
paramName = 'q',
onSelect = function(suggestion)
print(suggestion)
--$(this).val(suggestion.data);
end
})
I get:
VM935:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
at Function.parse [as parseJSON] ()
at Object.d [as transformResult] (jquery.autocomplete.min.js:8)
at Object. (jquery.autocomplete.min.js:8)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at A (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)
Is this posible ?
I get:
Here the js: https://pastebin.com/cFZw2PMr