Bootstrap just implemented a neat autocomplete feature called typeahead. I am having trouble getting the appropriate value for the text input.
For instance, I might
$('#myselector').typeahead({ itemSelected:function(data,value,text){ console.log(data) alert('value is'+value); alert('text is'+text); }, //your other stuffs });
You have to just pass itemSelected in the callback function and it will give you the selected item.
Hope this will work for you.