Skip to content

display autocomplete list onfocus / make autocomplete case insensitive #4

@michellecruz

Description

@michellecruz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions