append() Method


The append() method is used to insert new content at the end of selected elements.

The added content appears inside the element.

This method is commonly used to add list items, messages, or dynamic data.

This adds a new list item at the bottom of the list.

This inserts content inside the element at the end.

Content can be added dynamically on user interaction.

append() Method Notes:

  • Adds content inside element
  • Inserts at the end
  • Keeps existing content
  • Common in dynamic lists