jQuery height Method

jQuery height Method : is used to get or set the height of selected element. If want to add hight of an element dynamically use .height(height) method eg. .height(100) where 100 is height in pixel.

jQuery height Method Syntax 1 Get height

Here is syntax of height method-

jQuery height() Method Example 1

Here is an example of height() method

Try it »

Syntax 2 – Set Height

height(px): Height in pixel.

jQuery height() Method Example 2

Try it »

📖 Read More