Ok. That helped. Thank you. However, it took awhile to get that to work because, depending on the verion of jQuery, this portion of the sample:
$inp.autocomplete({
source: (dataIndx == "books" ? books : countries),
minLength: 0
}).focus(function () {
//open the autocomplete upon focus
$(this).data("autocomplete").search($(this).val());
});
Needs to change to:
$inp.autocomplete({
source: arr,
minLength: 0
}).focus(function () {
//open the autocomplete upon focus
$(this).data("uiAutocomplete").search($(this).val());
});
In summary, 'autocomplete' needed to change to uiAutocomplete.