Handle selected event in twitter bootstrap Typeahead?

George Botros picture George Botros · Mar 3, 2012 · Viewed 44.9k times · Source

I want to run Javascript function just after user select a value using twitter bootstrap Typeahead.

I search about some thing like selected event.

Answer

drow picture drow · Mar 28, 2013
$('.typeahead').on('typeahead:selected', function(evt, item) {
    // do what you want with the item here
})