Possible Duplicate:
jquery: how do I get the height of a div’s full content?
Lets say I've got 600px high div, that has scrolling enabled, and I've got a lot of content inside it so it has scrollbar. How to get height of content inside it?
Possible Duplicate:
jquery: how do I get the height of a div’s full content?
Lets say I've got 600px high div, that has scrolling enabled, and I've got a lot of content inside it so it has scrollbar. How to get height of content inside it?
It is called scrollHeight. You need to give:
$(element).get(0).scrollHeight
For eg., to know the scroll height of the total page, you can use:
$("body").get(0).scrollHeight