Lord Eww Lel Lord Eww Lel - 1 year ago 67
CSS Question

jQuery to Remove Class Surrounding HTML Elements Not Working

I have a

with a class of
that surrounds most of my main HTML elements. I have set this to
display: none
and would like to remove it as soon as the page finishes loading. However, this is not working as expected. Thank you for your help.


.fouc {
display: none;


$(window).on('load', function () {



shi shi
Answer Source

Try the following snippet

$(window).on('load', function () {



Hope it helps

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download