Get Height or Width of Div With jQuery
Today I want to show you how to get the current height and/or width of an element with jQuery and also how to constantly check the height and width of an element as the page is being resized!
First I want to show you how easy it is to get the height and width of the element. The following code does just that.
Now lets say you need to refresh your CSS positioning when the screen is being resize… this is how you check and update the value of that element everything the screen is resized, with the resize() function in jQuery.
That will do it! Hope this helped.