I am working on this test page: http://problemio.com/test.php
What I am trying to do is: when the person types, I want to go to the database and search available options for them. The part with fetching the items is working.
What isn’t working is displaying the items. I played around with jQuery autocomplete here: http://docs.jquery.com/UI/Autocomplete but it just gives this:
$("input#autocomplete").autocomplete({
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
And I am not sure how to populate that list after my ajax call returns the available options. Any ideas on what is the right way to go here?
You can pass the path to your server-side script to the source property. It should return a json object