Web Development Ninjas Question:

Download Job Interview Questions and Answers PDF

Tell me how do you add an HTML element in DOM tree?

Ninjas Web Developer Interview Question
Ninjas Web Developer Interview Question

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 QuestionNext Question
Tell me what is HTML?Do you know what elements have disappeared?