I have an application built in Html5 and wrapped in PhoneGap for Android
I have an auto-complete input
On a computer auto-complete input works great!
In SmartPhone, the auto-complete works only after you make space on the Input
(If write numbers first – works! If letters – works only after space)
Why?
JS code:
//Run in document.ready
function AutoComplete() {
List = $.map(data.XXX, function (item) {
return {
label: item.X,
value: item.XX
};
});
$("#MyInput").autocomplete({
source: List,
link: '#',
target: $('#MyList'),
minLength: 1
});
}
HTML:
The input:
<input id="MyInput" type="text"
placeholder="XXX" />
The List:
<ul id="MyList" data-role="listview" data-inset="true"> </ul>
‘oninput’ event in the input, ran the following function:
I run the auto complete manually, and it works
Thank you all for the help