Created
December 13, 2012 21:32
-
-
Save jlittlejohn/4280152 to your computer and use it in GitHub Desktop.
JS: Append New HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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