Using jQuery 2.1.0 and jQuery.ui 1.11.0 Tested in iOS 7. iPhone and iPad Mini. Works on android and regular browsers.
We recently upgraded from
you can probably can use the focus event from autocomplete!
focus( event, ui )
$(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"
];
var selectAction = function(event, ui) {
//do whatever you want with event and ui objects
console.log(ui.item)
}
$("#tags").autocomplete({
source: availableTags,
focus: selectAction,
select: selectAction
});
});