Appending new Html in JQuery

Posted by Goud.Kv under jQuery category on | Points: 40 | Views : 806
Below code snippet of JQuery is used to append a new Html.

var text = "This is new HTML";
$("p#textH").append(text); // added after
$("p#textH").prepend(text); // added before

Appending and Prepending is done by '.append' and '.prepend' functions.

Comments or Responses

Login to post response