I am using jQuery Autocomplete to search a local database of cities. Here is the code:
$(\'#txt_search_city\').autocomplete({ source: url, delay: 0,
This seems to be outdated. I had the same problem. Just use .autocomplete({autoFocus: true}) I'm using jquery-ui-1.10.0.min and it works now. No plug is needed.
.autocomplete({autoFocus: true})