I have two DIVs, .prev and .SLDR-ONE and I want to set .prev to keep the same height with .SLDR-ONE.
I've tried the following:
$(".prev").css({'height':($(".SLDR-ONE").height()+'px')}); It is not working properly because .SLDR-ONE doesn't have defined height. .prev take the height of the page except if I define a height to .SLDR-ONE (ex:300px).
.SLDR-ONE has css : float:left; position:relative, so the height is defined automaticaly.
https://jsbin.com/roviwi