This works in Firefox/Safari but not on IE
var h = parseInt($('#elementWhichHeightCanChange').css('height'));
alert(h);
on IE it returns NaN.
Anyone know how to get div height depending on its content on IE?
I want to resize this popup window to fit the content, which currently works only on Firefox.
Thank you in advance.
I have tried this, but it might work.
Use the height function or outerHeight instead of css height. You also won’t need the parseInt() because this will return an integer, unlike css height.