I know this is an old and answered question, and I am not looking for a voice. I just want to add an extra trifle, which, I think, can help beginners.
yes appendChild is the DOM method and append is the JQuery method, but the key difference is that appendChild takes node as a parameter because I mean, if you want to add an empty paragraph to the DOM you need to create this p element first
var p = document.createElement('p')
then you can add it to the DOM, while the jQuery append creates a node for it and immediately adds it to the DOM, whether it is a text element or an html element or a combination!
$('p').append('<span> I have been appended </span>');
kapreski Jun 24 '17 at 11:37 2017-06-24 11:37
source share