.appendTo() Method

Syntax

.appendTo()

Description

.appendTo() Method is more or less similar to “append” method which allows to insert or append content to the end of the specified element. The only difference is that in .append() syntax selector precedes content and in .appendTo() content precedes selector. Below example clearly shows you how to append a content at the end of the specified element using jquery.

Example Code

Result:

Appending the Text

jQuery Tutorial
This is .append() jQuery




Ask Questions

Ask Question