0

What is thee difference between appendChid() & append in js

26th Jan 2020, 6:28 AM
šŸ‡§šŸ‡©Muhammad iAR HOSSAINšŸ‡§šŸ‡©
šŸ‡§šŸ‡©Muhammad iAR HOSSAINšŸ‡§šŸ‡© - avatar
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.
26th Jan 2020, 6:39 AM
Prathvi
Prathvi - avatar
+ 1
šŸ‡§šŸ‡©EkmuthoSopnošŸ‡§šŸ‡© mark this question as solved What is thee difference between appendChid() & append in js. [solved]
26th Jan 2020, 2:56 PM
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³ - avatar
0
Thanks for your kind information.
26th Jan 2020, 2:11 PM
šŸ‡§šŸ‡©Muhammad iAR HOSSAINšŸ‡§šŸ‡©
šŸ‡§šŸ‡©Muhammad iAR HOSSAINšŸ‡§šŸ‡© - avatar