I wrotea code thatgets theheight of alldivsof a certain classanddoa scan,anddepending on the resultitremovesone of theclassesthatdiv. ButafterI getthe height of thediv,when I useparseIntit always returns0.
$(".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)