I have a div which should occupy the remaining vertical space of the browser window. If the content in that div is maximum than the height of the div, it should add scroll bar for that div.
I’m tried something similar to this, but it is of no use
h = $(document).height();
$("#mydiv").attr(height : h);
Try this…