Jak określić scrollHeight podziału, użyj CSS overflow: auto?
Próbowałem:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
Ostatecznie próbuję utworzyć czat i zawsze mam pasek przewijania do bieżącej wiadomości na ekranie.
Więc pomyślałem coś takiego:
var test = $('test').height();
$('test').scrollTop(test);
Dziękuję Ci,
Brian