I saw a lot of things on stack overflor to get the highest div, only non of them where working for me. I need to get the height of the div preview_txt.
<div class="headline" data-rating="0.482005543693" onclick="javascript:showArticle(1076);" style="display: none; ">
<div class="headline_txt">
<h1>#3726: Meryl Streep schittert in The Iron Lady- alle recensies op een rijtje</h1>
</div>
<div class="preview_txt">
<p>
De eerste foto's van actrice Meryl Streep als de Britse voormalig premier Margaret Thatcher
<a href="http://www.guardian.co.uk/film/2011/feb/08/meryl-streep-margaret-thatcher-iron-lady#">
leidden
</a>
vorig jaar al tot een stortvloed aan publiciteit. Nu is
<a href="http://www.imdb.com/title/tt1007029/">
<em>The Iron Lady</em>
</a>
er dan ook echt. Vanaf vandaag draait de film in de Nederlandse bioscopen. Lees hier alle recensies.
<!--more-->
</p>
</div>
</div>
From the things i saw arround i think i liked this one the most:
var maxHeadLineHeight = Math.max.apply(Math, $("#headline").map(
function(){
return $(this).height();
}
));
console.log("maxHeadLineHeight: "+maxHeadLineHeight);
But that gives me:
Uncaught TypeError: Function.prototype.apply: Arguments list has wrong type
I also tried it like:
"#headline .preview_txt"
while where at it, setting the height for each headline div will be next but that probably won't be that different (by getting the objects).