I have a form here that I can get to autocomplete with hard-coded items in the problem-categories text field: http://www.problemio.com/add_problem.php by using this jquery code:
$("input#autocomplete").autocomplete({
// Have to load stuff from db.
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
What I am not sure how to do is to construct it using category names returned by making an ajax call. Could someone help explain the flow or post some pseudo-code for how this is usually done?
Thanks!!
You’re looking for the documentation, which even includes three examples of this.