0
What is thee difference between appendChid() & append in js
3 Answers
+ 1
appendĀ is a jQuery method to append some content or HTML to an element.
::->
$('#example').append('Some text or HTML');
appendChildĀ is a pure DOM method for adding a child element.
::->
document.getElementById('example');
If you're using jQuery library on your project, you'll be safe always usingĀ appendĀ when adding elements to the page.
+ 1
š§š©EkmuthoSopnoš§š© mark this question as solved
What is thee difference between appendChid() & append in js. [solved]
0
Thanks for your kind information.