I had to use a different (and hacky) solution, because I change typeahead data every time I bind it, and could not get other answers to work. I will leave it here if someone needs it.
Remove Typeahead
var parent = $('.typeahead').parent(); var html = parent.html(); $('.typeahead).remove(); parent.html(html);
Add Typeahead
$('.typehead').typehead();
dcarneiro
source share