JQuery innerHeight()
Syntax
The .innerHeight()
method in JQuery returns the inner height of the selected element, including padding but not including border and margin.
The syntax for using this method is:
$(selector).innerHeight();
Use
The .innerHeight()
method can be used to retrieve the height of an element excluding its border or margin, but including its padding. This can be useful for dynamically adjusting the layout of a web page in response to user interactions or changes in device orientation.
Example
Here is an example that demonstrates how to use the .innerHeight()
method in JQuery to get the height of an element: