I have a div
div id='srch'
that has a computed height of 7000px how do i set the height of the another div to the same on window.load
div id='set_me'
I have a div
div id='srch'
that has a computed height of 7000px how do i set the height of the another div to the same on window.load
div id='set_me'
document.getElementById('set_me').style.height = document.getElementById('srch').offsetHeight +'px';
if the possibility of the srch height will ever change, it will always match
document.getElementById('set_me').style.height =
document.getElementById('srch').offsetHeight + 'px';