[jQuery] On Topic: $(...).height() != $(...).css('height')
<a href="http://visualjquery.com">visualjquery.com</a> say about height(): Get the current CSS height of the first matched element.
And the example claims it returns something like "14px". It appears to me (in FF2 on winxp anyways), that it returns a number, without the 'px'. Also, sometimes it returns the same value as css('height') (though css(...) DOES return the height with the 'px' part), but when I resize the window, sometimes it returns the wrong size. It isn't a big problem for me as I'm now just parsing the number out of css('height'), but it seems like inconsistent behavior.
--Erik
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/