With jQuery, it is easy to add new elements/content.
Add New HTML Content
We will look at four jQuery methods that are used to add new content:
append()
– Inserts content at the end of the selected elementsprepend()
– Inserts content at the beginning of the selected elementsafter()
– Inserts content after the selected elementsbefore()
– Inserts content before the selected elements