jQuery outerHeight()

outerHeight() method
The outerHeight() method returns the outer height of the FIRST matched element.As the image below illustrates, this method includes padding and border.

$(selector).outerHeight(includeMargin)

Example:-
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        alert("Outer height of div: " + $("div").outerHeight());
    });
});
</script>
</head>
<body>

<div style="height:200px;width:500px;padding:10px;margin:3px;border:1px solid blue;background-color:lightblue;"></div><br>

<button>Click here to see the outer height of div</button>

</body>
</html>