Possible Duplicate:
Use jQuery to scroll to the bottom of a div with lots of text
I use div to append context that user chat, however, I found that whenever update chat context, say there are over 100 line in div, but it always shows the first several line depends on the height of div. If you want to see other lines, you have to drag vertical scrollbar, but I want to display the latest context, which is always the last line. How to accomplish that?