Skip to content

Instantly share code, notes, and snippets.

@jlittlejohn
Created December 13, 2012 21:32
Show Gist options
  • Save jlittlejohn/4280152 to your computer and use it in GitHub Desktop.
Save jlittlejohn/4280152 to your computer and use it in GitHub Desktop.
JS: Append New HTML
var sometext = "here is more HTML";
$("p#text1").append(sometext); // added after
$("p#text1").prepend(sometext); // added before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment