auto complete clarification

auto complete clarification

Hi,

I am using - jqm1.3, my scenario is this

I am able to construct and display the search listview via ajax / GET attached to a text search input item
  1. '<li data-theme="c" data-iconpos="notext"><a class="myfind" data-ajax="false" href="#" id="'+res[i]+'">'+names[i]+'</a></li>'
  2. // names is json return

I am struck at these following 2 issues,  

a) to populate in text item after I click on the listitem and listview hides , 
b) or when data-clear-btn="true"

I tried this but no help
  1. $('li .myfind a').on('click', function(e){  
  2. e.preventDefault(); 
  3. $("#myfindtxt").val($(this).attr("id"));
  4. })  

Please guide me on this . Also, can you guide if I can choose to ignore listviewbeforefilter over my list view construction. I have just used it on pageinit.

PS: 
a) I am using above listview in data-role="popup". 
b) data-clear-btn="true" , some browser  deliberate to press tab twice for next item navigation. Is this expected behaviour?
c) There pretty good plugins out there, but admin constraints on my side.

I would really appreciate for a quick help.

Regards
Srikrish
"Learning continues..."