[jQuery] Re: Getting a div with scroll bar to stay scrolled down

2007-10-19 Thread Dave Methvin
Nope, I was utilizing the scrollTop() method from dimensions. Okay, the next time I think you made a mistake I'll rethink it a bit. :)

[jQuery] Re: Getting a div with scroll bar to stay scrolled down

2007-10-19 Thread Jonathan Sharp
On 10/19/07, Dave Methvin [EMAIL PROTECTED] wrote: $('#divname').scrollTop( $('#divname')[0].scrollHeight ); I think you meant: $('#divname')[0].scrollTop( $('#divname')[0].scrollHeight ); Nope, I was utilizing the scrollTop() method from dimensions. Here's another way that avoids

[jQuery] Re: Getting a div with scroll bar to stay scrolled down

2007-10-19 Thread Dave Methvin
$('#divname').scrollTop( $('#divname')[0].scrollHeight ); I think you meant: $('#divname')[0].scrollTop( $('#divname')[0].scrollHeight ); Here's another way that avoids redundant selector expressions: $('#divname').each(function(){this.scrollTop = this.scrollHeight});