Sure. You specify source
as a function that will respond to a list of strings or, alternatively, {label, value}
objects.
$('#myInput').autocomplete({ source: function (request, response) { var term = request.term; var data = handleAutocomplete( term); response( data); } }); function handleAutocomplete (term) { var options = ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"];
See: http://api.jqueryui.com/autocomplete/#option-source
source share