-3

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?

Community
  • 1
  • 1
Adarchy
  • 551
  • 3
  • 7
  • 17

1 Answers1

2

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
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252