This tool is exactly what I've been looking for, but I'm wondering how I can display the autocomplete list on focus. I attempted to add this code:
$(function() {
$('.autocomplete').autocomplete({
source: words,
minLength: 0
}).focus(function(){
$(this).trigger('keydown.autocomplete');
});
});
But nothing happens.
Also, how can I make the plugin case insensitive? My list contains all proper nouns, but I want people to be able to see the options even if they type lowercase letters.