I am trying to build an autocomplete input similar to the one Facebook has for selecting target users. My problem is that when the user clicks on one of the results in the autocomplete, the focus is lost and the keyboard is hidden as well. I would like to be able to set focus on the input again so that the user can continue to type for selecting another user. I have tried .focus() but it doesn’t really work. My goal is to create a website that is going to be used on mobile so I can’t use any plugins cordova might have to offer.
http://www.emposha.com/demo/fcbkcomplete_2/ - the functionality would be similar to this but without jQuery.