Web Development Ninjas Question: Download Questions PDF
Tell me how do you add an HTML element in DOM tree?
![Ninjas Web Developer Interview Answer Ninjas Web Developer Interview Question](https://globalguideline.com/public/images/interview/25.png)
Answer:
You can use the jQuery method appendTo() to add an HTML element in DOM tree. This is one of the many DOM manipulation methods that jQuery provides. You can add an existing element or a new HTML element, appendTo() add that method in the end of a particular DOM element.
Download Ninjas Web Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is HTML? | Do you know what elements have disappeared? |