Insert content after each <p> element:
The after() method inserts specified content after the selected elements.
Tip: To insert content before selected elements, use the before() method.
| Parameter | Description |
|---|---|
| content | Required. Specifies the content to insert (can contain HTML tags)
Possible values:
|
| function(index) | Specifies a function that returns the content to insert
|
after() - Create content
with HTML, jQuery and DOM
Insert content with the after() method.
Insert content using a function
How to use a function to insert content after selected elements.
Your message has been sent to W3Schools.