I have a problem when resizing the height of a div
.
I set the height of the div
with JavaScript, but it only works when I refresh the page (F5).
How can I get it to work without a refresh?
The code is below:
<script>
$(document).ready(function (){
$("#wr1").hide();
$("#header").hide();
var aa = $("#wr1").height();
var bb = aa-80;
var cc = $("#detail-about1").width();
$("#detail-about1").css('height',bb);
$("#wr-close").css('width',cc);
$(".nav li a").click(function (){
$("#wr1").slideDown();
$("#header").slideDown();
$("#footer").slideUp();
mCustomScrollbars();
});
});
</script>