Two divs are causing me trouble!
<div id="loader">
</div>
and
<div id="wrapper">
</div>
"The wrapper div is not located inside the loader div just to clarify."
This is my code:
$(window).bind("load",function() {
$('#loader').css('display',none);
$('#wrapper').css('visibility',visible);
});
The goal of this script is to hide the loader div once the page has finished loading, and show the wrapper div that contains all the content.
Initially, I set display:none
in the wrapper's style.
As expected, the loader div is displayed until the page finishes loading (which I can tell from the mouse loading icon and the browser tab favicon), but the wrapper div remains hidden.
Any assistance would be much appreciated.