$(document).ready(function(){
var heightJanela = $(window).height() + "px";
$("#banner-hold").css("height",heightJanela);
});
I made the above code so that when the document is loaded, the div
"banner-hold" gets height
equal to that of the window. For the same function to be performed the moment the window received a resize
, I changed the .ready
by .resize
and .change
but neither worked, how can I fix this?