How to append a jQuery object to all paragraphs using jQuery ? Last Updated : 05 Aug, 2025 Comments Improve Suggest changes Like Article Like Report In this article, we will see how to append a jQuery object to all paragraphs using jQuery. Append means we add something to an existing element. The object is used to define a container for an external resource like a page, a picture, a media player, or a plug-in application. Used Methods: ready() Method: This method is used to specify a function to execute when the DOM is fully loaded.click() Method: This method is used to trigger the click event, or attaches a function to run when a click event occurs.append() Method: This method is used to insert specified content at the end of the selected elements. Approach: Create the HTML page with paragraph <p> elements.Next, write a script to append the object to the paragraph element. Example: In this example, we are using the above-explained approach. HTML <!DOCTYPE html> <html> <head> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"> </script> <style> body { text-align: center; font-size: 20px; } button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; } object { font-size: 30px; color: lightgreen; background-color: green; } </style> <script> $(document).ready(function () { $("button").click(function () { $("p").append( "<object>This is object</object>."); }); }); </script> </head> <body> <h2 style="color:green">GeeksforGeeks</h2> <b> Click on the button to append object at the end of every paragraph. </b> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button>Append Object</button> </body> </html> Output: Append object Create Quiz Comment A abhishekpal97854368 Follow 0 Improve A abhishekpal97854368 Follow 0 Improve Article Tags : Web Technologies JQuery Web technologies CSS-Properties jQuery-Methods jQuery-Questions jQuery +3 More Explore jQuery Tutorial 7 min read Getting Started with jQuery 4 min read jQuery Introduction 7 min read jQuery Syntax 2 min read jQuery CDN 4 min read jQuery SelectorsJQuery Selectors 5 min read jQuery * Selector 1 min read jQuery #id Selector 1 min read jQuery .class Selector 1 min read jQuery EventsjQuery Events 4 min read jQuery bind() Method 2 min read jQuery blur() Method 1 min read jQuery change() Method 2 min read jQuery EffectsjQuery animate() Method 2 min read jQuery clearQueue() Method 2 min read jQuery delay() Method 2 min read jQuery HTML/CSSjQuery addClass() Method 2 min read jQuery after() Method 1 min read jQuery append() Method 2 min read jQuery TraversingjQuery | Traversing 4 min read jQuery add() method 1 min read jQuery addBack() Method 2 min read Like