jQuery after() Method
jQuery after() Method
The after() method is used to insert specified content after the selected elements. For inserting the content before selected elements, we can use the before() method.
Syntax:-
Its syntax is:- $(selector).after(content, function(index))
Further Explanation:-
Parameter | Description |
---|---|
content | Required. Specifies the content to insert. |
function(index) | Specifies a function that returns the content to insert
|