jQuery removeProp() Method Last Updated : 10 Jul, 2023 Suggest changes Share Like Article Like Report The removeProp() method is an inbuilt method in jQuery that is used to remove the property set by the prop() method. The prop() method is used to add a property to a selected element. Syntax: $(selector).removeProp(property)Parameter: This method accepts single parameter property which is mandatory. It is used to specify the name of the property which needs to remove. Return Value: This method returns the selected element with the specified property removed. The below example illustrates the removeProp() method in jQuery: Example: Here is an example of the above-explained method. html <!DOCTYPE html> <html> <head> <title>The removeProp Method</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <!-- jQuery code to show the working of this method --> <script> $(document).ready(function () { $("button").click(function () { let $GFG = $("div"); $GFG.prop("color", "green"); $GFG.append("The value of color: " + $GFG.prop("color")); $GFG.removeProp("color"); $GFG.append("<br>The value of color after removeProp: " + $GFG.prop("color") + "<br>"); }); }); </script> <style> div { width: 400px; min-height: 60px; padding: 15px; border: 2px solid green; margin-bottom: 10px; } </style> </head> <body> <div></div> <!-- click on this button --> <button>Click Here!</button> <br> <br> </body> </html> Output: K kundankumarjha Follow Article Tags : Web Technologies JQuery jQuery-Methods 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 My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like