I'm pretty new to jquery in particular and js in general, so I hope I didn't make a silly mistake. I have the following js code:
var speechText = "Purpose of use:<br/>";
speechText += "<script>$(function(){$(\".simple\").tooltip();});</script>";
speechText += "<a href=\"#\" class=\"simple\" title=\"day to day use\" data-placement=\"top\" data-toggle=\"tooltip\">simple use</a>";
speechElement.innerHTML = speechText;
This function changes the content of an element on the html page. When calling this function everything works, including displaying the link "simple use", but the tooltip doesn't appear. I tried writing the exact thing on the html document itself, and it worked. What am I missing?