Hi,
If you check out the
api documentation[
^] for the autocomplete widget, it explains how to use the minLength option.
If you set the minLength option to zero, then the suggestion list should be displayed.
[quote]
The minimum number of characters a user must type before a search is performed. Zero is useful for local data with just a few items, but a higher value should be used when a single character search could match a few thousand items.
[/quote]
... updated to add updated usage example (based on the
jQuery example[
^]):
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags,
minLength: 0
});
});
</script>
</head>
<body>
<label for="tags">Tags: </label>
<input id="tags">
... hope it helps.