Web Development Ninjas Question:

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

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 PDF Read All 58 Ninjas Web Developer Questions
Previous QuestionNext Question
Tell me what is HTML?Do you know what elements have disappeared?