Append New HTML
09
September
2015

Use Below code to append or prepend new html to existing tag.

var sometext = “here is more HTML”;
$(“p#text1”).append(sometext); // added after
$(“p#text1”).prepend(sometext); // added before

  • 745 View
  • Pin It