Javatpoint Logo
Javatpoint Logo

jQuery outerHeight()

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

In the above example, you can see that border and padding both are included in the outerHeight() method.


Parameters of jQuery outerHeight() method

Parameter Description
includeMargin This is a Boolean value which specifies whether to include the margin or not.
  • False:It specifies that: Not to include the margin. It is a default value.
  • True:It specifies that: Include the margin.

This is an optional parameter.

Example of jQuery outerHeight() method

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

Test it Now

jQuery outerHeight() example 2

Let's take an example to demonstrate how to change the inner height of each div.

Test it Now
Next TopicjQuery wrap()

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA