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.
views:
61answers:
3
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
2010-10-25 12:47:55
Thanks for the suggestion Alex
Mohan
2010-10-25 13:03:12
A:
Is that what you are looking for?
http://yelotofu.com/2008/10/jquery-how-to-tell-if-youre-scroll-to-bottom/
Mouhannad
2010-10-25 12:57:35
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
2010-10-25 15:31:20