$(function(){ var currencies = [ ]; // setup autocomplete function pulling from currencies[] array $('#autocomplete').autocomplete({ lookup: currencies, onSelect: function (suggestion) { var thehtml = 'Currency Name: ' + suggestion.value + '
Symbol: ' + suggestion.data; $('#outputcontent').html(thehtml); } }); });