Answers for "hide div on page load"

0

hide div on page load

<html>
  <head>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    <script type="text/javascript">
      $(document).ready(function(){
        $("div.LoadedHide").css("display", "none");
      });
    </script>
  </head>
  
  <body>
    <div class="LoadedHide">
      <h1>This should be hidden when fully loaded!</h1>
    </div>
  </body>
  
</html>
Posted by: Guest on April-02-2021

Browse Popular Code Answers by Language