Come ottengo l'altezza di DIV, impostata da jQuery?
$('.bar2').animate({'height':'58' + "%"},1500);
jQuery height of element.style
Quando ho ispezionare elementi in cromo vedo che la mia altezza DIV è impostato su 58%
<div class="bar2" style="height: 58%; background-image: ......>
Ho provato questo:
var bar2 = $(".bar2").height(),
o var bar2 = $(".bar2").css('height'),
ma Ricevo sempre la mia "altezza minima" che è 70 px, non l'altezza impostata da jQuery
questo ha funzionato per me, grazie –