I have a DIV defined with a fixed height:
.w { height: 100px; overflow: hidden; }
If I put text in this, it will hide everything that goes beyond 100px. I have a button that displays all the text, basically it does this:
$('.w').height('auto');
this will make the whole text visible, but I would like to animate it. And this will not work with height = 'auto', it must have a certain height.
Question: how do I get the height so that the DIV should show all the text?
jquery html height
patrick
source share