0
What is thee difference between appendChid() & append in js
3 Réponses
+ 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.