Reset DIV size after .html('') method?
Hi Everyone,
I'm having an issue where I use:
$('div#content').html('');
to clear a div before adding new content and then:
$('div#content').append('...');
to add the content. The problem is that if the previous content was larger, the height of the div stays the same and it doesn't reset when I load the new content and I get stuck scrolling through pages of blank space. I've tried using:
$('div#content').html('');
$('div#content').css("height", "0");
$('div#content').append('...');
but it doesn't work.
Any ideas what I could try? Thanks