What is the append() function in JavaScript?

The append() method inserts specified content at the end of selected elements.

Syntax

$(selector).append(content,function(index,html))

content is the required parameter – it can contain HTML tags. function is an optional parameter.

Copyright ©2024 Educative, Inc. All rights reserved