Come faccio a determinare scrollHeight di una divisione usa css overflow: auto?
Ho provato:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
In definitiva, sto cercando di creare una chat e avere sempre la barra di scorrimento per il messaggio corrente sullo schermo.
Quindi stavo pensando qualcosa di simile a quanto segue:
var test = $('test').height();
$('test').scrollTop(test);
Grazie,
Brian