I have a javascript/jQuery page where I\'m using Twitter Bootstrap\'s typeahead. There are two separate places in the javascript where I add elements that I would like to be ty
You can use jQuery delegation to do that. For example:
jQuery
$("#element-that-will-contain-typeaheads").on("DOMNodeInserted", function () { $(this).find(".typeahead").typeahead(); });