I am trying to setup an autocomplete field.
I'v read the JQuery UI documentation, but all the example assume the source is a static list of items from which JQuery will pick matching entries (I mean static = the list is complete and doesn't depend on what the user typed).
Here is the code from the "remote datasource" example:
$( "#birds" ).autocomplete({
source: "search.php",
...
I would like JQuery to call search.php?query=mytext
(this URL returning a list of matching items) because I need to lookup suggestions in a database using PHP.
Is there a way to do that? Maybe I didn't understand the documentation?