¿Cómo determino scrollHeight de una división use css overflow: auto?¿Cómo determino scrollHeight?
que he probado:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
En última instancia, estoy tratando de crear una charla y siempre tienen la barra de desplazamiento para el mensaje actual en la pantalla.
así que estaba pensando algo como lo siguiente:
var test = $('test').height();
$('test').scrollTop(test);
Gracias,
Brian
¿Qué hay de malo con el uso de scrollHeight()? –
@BadrHari: no hay función 'scrollHeight()' en jQuery. –
es $ ('prueba'). Get (0) .scrollHeight(); – JFouad