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, 2009 at 12:36 PM, Arrviasto <arrvia...@gmail.com> wrote: > > Hi! > I have to use scrollTop and scrollHeight properties, but on jQuery > object it returns `undefined`. Is there any method to get this > property from jq object? > > It doesn't matter, but my object looks like this: > > var $win = $(this) // div on my page > var $msgs = $win.find('.msgs'); > > > $msgs.scrollHeight returns 'undefined' > > Thanks, > Arrviasto (Poland) >