Example with jQuery:
var element = $(
var currentHtml = element.html();
element.html(currentHtml + "Hello World");
With both approaches there is a way to inject html from a file.
I hope the above information helps.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal
and vote to affect the priority of the items