In this article we will explain how to add specified content after the selected jQuery or What is after() method in jQuery or why use after() method in jQuery with example.


The jQuery after() method is used to add specified content after the selected element. It is just like jQuery append() method. If you want to add content before the selected element, you should use jQuery before() method.

Let’s see, Example of jQuery after() method:

<!DOCTYPE html>
    <title>Example of jQuery after() method</title>
    <script type="text/javascript" src=""></script>
        $(document).ready(function () {
            $("button").click(function () {
        <button>Add content after each paragraph element</button>
        <p style="width:300px;">This is a Articles website.</p>
        <p style="width:300px;">This is a Forums institute.</p>

 Let's check live example

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like