I\'m using Twitter\'s typeahead plugin for autocompletion with a text input. I want to change the behavior so that instead of putting the selected option\'s value into the t
Struggled with this for a while, before I found how to clear the text when you select an option:
$("#typeahead-input").on('typeahead:selected', function (event, datum, name) { $(this).typeahead("val", ""); // Do something with the datum... });