I think that would be how prototype would do it. Here's how jQuery would: $('#divname').scrollTop( $('#divname')[0].scrollHeight );
Cheers, -js On 10/16/07, Eric <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have a div that will refresh itself and the scroll bar just won't > stay down. The solution I've found is: > > var objDiv = document.getElementById("divname"); > objDiv.scrollTop = objDiv.scrollHeight; > > This doesn't work: > $('#divname').scrollTop = $('#divname').scrollHeight; > > Therefore is there a more jquery-like way of doing it other than using > plugins perhaps? > > Thanks. > > Eric > >