George Botros George Botros - 4 months ago 10
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
})