JQuery determin scrollHeight
<p>How do I determine scrollHeight of a division use css overflow:auto?</p>

<p>I've tried:</p>

<pre><code>$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
</code></pre>

<p>Ultimately, I'm trying to create a chat and always have the scroll bar to the current message on the screen.</p>

<p>So I was thinking something like the following:</p>

<pre><code>var test = $('test').height();
$('test').scrollTop(test);
</code></pre>

<p>Thank you,</p>

<p>Brian </p>
