how can i get $(document).height() NEW value when new data has been added?

Posted by andufo on Stack Overflow See other posts from Stack Overflow or by andufo
Published on 2010-05-26T08:08:24Z Indexed on 2010/05/26 8:11 UTC
Read the original article Hit count: 182

Filed under:

Lets suppose that $(document).height() is 1000. Then i insert a new div at the bottom of the page with height=100. The $(document).height() should be 1100 but it keeps throwing 1000 to me.

How can i get the new $(document).height() dynamically?

Thank!

© Stack Overflow or respective owner

Related posts about jQuery