Course Content

  • 3.2 appendTo
  • 3.2 before
  • 3.2 insertAfter
  • 3.2 prepend

Course Content


The add() method adds elements to a collection of elements that already exists. If the context parameter is given, this method adds elements to the entire page or just the context elements.

There are a few methods of adding elements using jquery. The most popular method is to use the append() method. This method will add an element to the end of the current list, which can be a DOM element or an array of DOM elements. The second most popular method is to use prepend(), which will add an element before the current list.

There are many ways to add elements in a website. However, the most efficient way is using jQuery methods. This can help with adding elements without having to worry about the positioning of them.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere