George Botros George Botros - 9 months ago 42
Javascript Question

handle selected event in twitter bootstrap Typeahead?

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
$('.typeahead').on('typeahead:selected', function(evt, item) {
    // do what you want with the item here
})