I need to calculate the height of this div with Javascript.
When I wrote this script:
function getMainDivHeight() {
var num = document.getElementById('up_container').style.height;
return num;
}
this script returns auto
I need the height of the div after changing it.
Thank!!
Jacob source
share