Consider the following,
<div id="outerDIV">
<div id="innerDIV" style="height: 100%;">
<asp:ContentPlaceHolder... />
</div>
</div>
These DIVs reside in the master page of an asp.net site. I would like to write a function that copies the innerDIV's height and apply it to the outerDIV's height. I can do this normally, like so:
$(document).ready(function () {
$('#outerDIV').height($('#innerDIV').height());
});
but the problem is I only want it to occur at the first load of the page. When the user navigates away to other pages, I don't want the outerDIV to resize again.
How may I accomplish this?
Thanks