Skip to content

Instantly share code, notes, and snippets.

@davidvandenbor
Last active December 4, 2015 09:03
Show Gist options
  • Save davidvandenbor/b6d48151bc04c893a1af to your computer and use it in GitHub Desktop.
Save davidvandenbor/b6d48151bc04c893a1af to your computer and use it in GitHub Desktop.
HTML code insertion in pages using jQuery
// this is how you can insert pieces of HTML code into pages using jQuery
var dynamic_html = "<div><span>Highlighted</span><span>Author</span></div>";
document.getElementByID("container").innerHTML = dynamic_html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment