I am using jQuery UI autocomplete and trying to implement the autoFocus option.
The documentation states the following: If set to true the first item will be automatically focused.
I created a basic example and cannot get to work. I must be missing something obvious. See here: http://jsfiddle.net/9bQJX/
$("#autocomplete").autocomplete({
source: [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
],
autoFocus: true
});