ParseInt return 0 (zero)

ParseInt return 0 (zero)

Hello,

I wrote a code that gets the height of all divs of a certain class and do a scan, and depending on the result it removes one of the classes that div .
But after I get the height of the div , when I use parseInt it always returns 0 .


$(".faq-wrapper").click(function(){
        $(".accordion-text").each(function(index, value){
            var h = $(this).css("height")
            var h1 = h.split("px")
            var h2 = h1[0]
            var h3 = parseInt(h2,10)
           
            alert(h3)
           
        });
    });