.insertAfter() Method

Syntax

.insertAfter()

Description

.insertAfter() is more or less similar to “after” which performs the same task of allowing to insert the content after the specified element. The main difference is that in .after() syntax, selector precedes the content where as in .insertAfter() the content precedes the selector
Below example clearly shows you how to insert the content using .insertAfter() function.

Example Code

Result:

insertAfter() Example

jQuery Tutorial

This is .insertAfter() jQuery




Ask Questions

Ask Question