In this article we will learn how to get outer Height of html elements or how to use outerHeight() method in jQuery with example.


The jQuery outerHeight () funtion is used to return the outer height of first matched html element. This method includes padding and border both.

Example of jQuery outerHeight() method

Let's take an example to demonstrate the effect of jQueryouterHeight() method.

<!DOCTYPE html>
<html xmlns="">
    <title>Jquery Tutorials</title>
    <script src="Scripts/jquery-1.8.2.min.js"></script>
        $(document).ready(function () {
            $("button").click(function () {
                $('p').text("Outer height of div is: " + $("div").outerHeight());
    <div style="height:100px;width:300px;padding:10px;margin:3px;
     border:1px solid blue;background-color:lightpink;"></div><br>
    <button>Click here to get the outer height of the div</button> <br />

Above code snippet when you click on button than “div” outerHeight show in “p” tag.

How to use outerHeight() in jQuery

 I hope it will help to you after reading.


Leave a comment

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

you may also like