I struggle with the autopcomplete Plugin for jQuery.
<input type="text" id="name" />
<input type="password" id=""pass" />
//...
$('#name').autocomplete({source: userName});
It works all fine but when I've selected a user name I get a text focus an both the name and the password input field. As soon as I type in a char it appears in both but just in the next moment the courser jumps in the name field and continues writing in there.
I tried to disable and/or unfocus the password field using jQuery's focus/focusout events as well as autcomplete's autocompleteclose events but none of these worked.
My target is a phinegap honegap 1.2.0. app, jQuery 1.18.16 and jqm 1.0 for 2.0+ android.
Edit
I forget the most important observation. This behaviour only occurs when I select a suggestion which is displayed over the password field. So my assumption is the click/tap event will be fired for both events. autocomplete's list and the field. So somewhat it's "transparent" for android.
Comments
Post a Comment