When using JQuery UI Autocomplete, how can I modify the term user entered in the input field, prior to sending the AJAX request?
Eg. user entered foo
and the backend gets foo :today
?
I've tried to play with search()
method but with no luck.
Alternatively, how can I add more query parameters to the src
upon sending AJAX, once the src
is already set.
eg. src = src
+ '?when=today'`
I'm trying to provide results based on the values of two fields (search term with param selected from other dropdown)