Andreas Wahlin wrote:
> $(element).attr('scrollHeight')
> does not work (returns undefined)
> but
> $(element)[0].scrollHeight
> does, is this right?

Maybe that's because scrollHeight is a property of an element and not an 
attribute (that is reflected in the HTML tag's attribute list).

Try:

element.foo = 'bar';
alert( $(element).attr('foo') );

I'm pretty sure that the alert is empty.

By the way: $(element)[0].scrollHeight is the same as 
element.scrollHeight of course with a little less overhead.

-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to