jQuery outerHeight() Method Last Updated : 27 Jun, 2023 Suggest changes Share Like Article Like Report The outerHeight() method in jQuery is used to find the outer height of the specified element. Outer height of an element includes padding and border. Syntax: $(selector).outerHeight(includeMargin) Parameters: This method accepts single parameter includeMargin which is optional. It contains boolean value and used to specify whether the margin to be included or not. If includeMargin is set to true then margin included otherwise margin not included. By default the includeMargin set to false. Below example illustrates the outerWidth() method in jQuery: Example: This example display the outer height of an element. html <!DOCTYPE html> <html> <head> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <!-- Script to return outer height --> <script> $(document).ready(function() { $("button").click(function() { alert("Outer height of div: " + $("div").outerHeight()); }); }); </script> <!-- Style to create box using padding and margin --> <style> .geeks { height: 80px; width: 200px; padding: 5px; margin: 5px; border: 2px solid black; background-color: green; text-align: center; } </style> </head> <body> <div class="geeks"> GeeksforGeeks </div> <button>Click Here to display outer height</button> </body> </html> Output: Before Click on the button: After Click on the button: C Code_Mech Follow Article Tags : Web Technologies JQuery jQuery-HTML/CSS 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