I think this should work in the latest version of jQuery.

$('html').animate({ scrollTop: $('html').height() });


On Oct 17, 5:18 am, 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

Reply via email to