jQuery Autocomplete

Shows simplest use of jQuery Autocomplete.

by stackmanoz

HTML

<input type="text" />

JavaScript

$("input").autocomplete({
    source: ["Apple", "Boy", "Cat"],
    minLength: 0,
}).focus(function () {
    $(this).autocomplete("search");
});