Closed strukturart closed 3 years ago
Hello,
I try to add a value at the end of the query, it works like this:
onSearchStart: function() { var input = $(this), instance = input.data('autocomplete'); instance.options.params = "" instance.options.params = url + "&address=" + input.val() + ", helloWorld"; }
but if the user changes the values i get the following message: jquery.autocomplete.min.js:549 Uncaught TypeError: Cannot create property 'address' on string
jquery.autocomplete.min.js:549 Uncaught TypeError: Cannot create property 'address' on string
how can I run the search again ?
I found a solution!
ajaxSettings: { beforeSend: function(jqXHR, settings) { settings.url += "helloWorld"; } },
thanks for reading.
Hello,
I try to add a value at the end of the query, it works like this:
but if the user changes the values i get the following message:
jquery.autocomplete.min.js:549 Uncaught TypeError: Cannot create property 'address' on string
how can I run the search again ?