jQuery innerHeight() method
Example
Return
The inner height of the element:
$
(
"
button
"
)
.
click
(
function
(
)
{
alert
(
$
(
"
div
"
)
.
innerHeight
(
)
)
;
}
)
;
Try it »
Definition and Usage
The innerHeight() method returns the inner height of the first matched element.
As shown in the image below, this method includes padding but not border and margin.

Related methods:
- width() - Sets or returns the width of an element
- height() - Sets or returns the height of an element
- innerWidth() - Returns the width of an element (including padding)
- outerWidth() - Returns the width of an element (including padding and border)
- outerHeight() - Returns the height of an element (including padding and border)
Syntax
$(
selector
).innerHeight()
More examples
Display dimensions with related methods
How to use width(), height(), innerHeight(), innerWidth(), outerWidth(), and outerHeight().
jQuery HTML/CSS methods