codeGK
Code it ALL
jQuery after() - CodeGK

♦ jQuery after()

♣ Example3: jQuery after()

Inserts Textual/HTML data after the selected HTML elements.
Basic Syntax
$(selector).after(data);
selector: the HTML element to be selected.
data: the data to inserted Below the selected HTML element.
In this example, jQuery after() method is illustrated.
Example
Input:
Output: