Web Development Ninjas Question:
Download Job Interview Questions and Answers PDF
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 Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me what is HTML? | Do you know what elements have disappeared? |