Append Vs AppendChild JQuery
<p>included the sample code.</p>

<pre><code>function addTextNode(){
    var newtext = document.createTextNode(" Some text added dynamically. ");
    var para = document.getElementById("p1");
    para.appendChild(newtext);
    $("#p1").append("HI");
}

&lt;div style="border: 1px solid red"&gt;
    &lt;p id="p1"&gt;First line of paragraph.&lt;br /&gt;&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>What is the differnce between append and appendchild. Any real time scenarios ?</p>

<p>PS: May be a silly question just want to know the exact diffrence</p>

<p>Thanks</p>
