I try to adjust the height of a div, based on the height of another div. Looks quite simple.. But unfortunately, it does not work. So please give me a hand in this. Here is my code:
anderblokhoogte = document.getElementById('slider-gaea');
var curblok = document.getElementById('curiculum');
curblok.clientHeight = anderblokhoogte.clientHeight + 'px !important';
I proved the element 'slider-gaea' exists, but the clientHeight of 'anderblokhoogte' differs from the height I see when inspecting this element. But also, the adjustment of the curblok.clientHeight does not give a change in height of the target element.
I already tried quite some options (other properties like 'style.height', 'offsetHeight') but no idea what mistake I make.