I would like to adjust the size of an element in the opposite direction, so the code below does adjust it, but it enlarges it from current position to bottom, I want current position to top. What would be an efficient way of doing this? thanks
var ele=document.getElementById('mydiv');
ele.style.height = 500+'px';