Is there a way to convert twitter bootstrap\'s typeahead function into a $(\"body\").on() function? The following code works fine if the element exists on the p
$(\"body\").on()
This solution requires no additional javascript. From https://stackoverflow.com/a/15094730
$("#element-that-will-contain-typeaheads").on("DOMNodeInserted", function () { $(this).find(".typeahead").typeahead(); });