How to remove all paragraphs from the DOM using jQuery ? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report To remove elements and content, we use jQuery remove() method which removes the selected element as well as everything inside it, also it will remove all bound events associated with that target element. Syntax: $(selector).remove() Example : HTML <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous" > </script> <!-- JQuery CDN directed from the JQuery website --> <script> $(document).ready(function () { $("button").click(function () { $("p").remove(); }); }); </script> </head> <body> <div style="padding-top: 90px; padding-left: 200px"> <p style="font-size: 40px"> Welcome to GeeksforGeeks! </p> <p style="font-size: 40px"> Computer Science portal For geeks. </p> <p style="font-size: 40px;"> Learn DS-ALGO From here at your own pace. </p> <button style="padding: 12px"> Remove </button> </div> </body> </html> Output: remove() method Comment More info S shubhamkumarsingh4957199 Follow Improve Article Tags : Web Technologies JQuery HTML-DOM jQuery-Selectors jQuery-Questions +1 More Explore jQuery Tutorial 8 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