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...
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…