Hey guys, I see this problem a kind of difficult to be solved. I have a Div that can grow with comments that the posters add, I have to know what is the height of this div (ex. 120px or 500px.) this will be when the after the grow action of course. I need that data pals. Thanxs a lot
Hi, I think it's impossible to say what the height will be before adding comments. But you can always check the current height from scrollHeight and try to predict from that. To get the current height, use something like this: var height = document.getElementById("id_of_the_element_to_check").scrollHeight; Code (markup): Neoto