jQuery insertAfter() Method
jQuery insertAfter() Method
The insertAfter() method is used to insert HTML elements after the selected elements. For inserting HTML elements before the selected elements, we have to use the insertBefore() method.
Syntax:-
Its syntax is:- $(content).insertAfter(selector)
Further Explanation:-
Parameter | Description |
---|---|
content | Required. Specifies the content to insert. |
selector | Required. Specifies where to insert the content |