views:

61

answers:

3

I have a div and some buttons. I have fixed the div with a particular height, and i have hidden the scrollbar. By clicking on a button I need scroll the div to the end of the line. for that I used $("#divid").height() & $("#divid").offset().height functions to get the entire height of the div but it returns what I have specified in the css, how to get the entire height of the DIV.

A: 

It would be better to get the height of the div when the page loads, in javascript, then set it's height in javascript after you have the full height

Alex
Thanks for the suggestion Alex
Mohan
A: 

Is that what you are looking for?

http://yelotofu.com/2008/10/jquery-how-to-tell-if-youre-scroll-to-bottom/

Mouhannad
A: 

You can use a wrapper inside the fixed-height div which holds the height of the content. Check this jsFiddle jQuery example

Justus Romijn