How do I determine scrollHeight of a division use css overflow:auto?
I've tried:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
Ultimately, I'm trying to create a chat and always have the scroll bar to the current message on the screen.
So I was thinking something like the following:
var test = $('test').height();
$('test').scrollTop(test);
Thank you,
Brian
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…