[jQuery] Re: scrollTop on jQuery object

2009-05-19 Thread Arrviasto
OK the scrollHeight works, but what with scrollTop? I want to make something like this: obj.scrollTop = obj.scrollHeight; I need scroll down this element on an event. var i = 0; while

[jQuery] Re: scrollTop on jQuery object

2009-05-18 Thread Brandon Aaron
There are two ways to get the DOM element out of the jQuery object. Assuming $msgs from your code example, you could get the first message as a DOM element like this: var msg = $msgs.get(0); // or var msg = $msgs[0]; // then get scrollHeight msg.scrollHeight -- Brandon Aaron On Mon, May 18,