Remove div class on page loading - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:removeClass

Description

Remove div class on page loading

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> 
      <script type="text/javascript" language="javascript">
         $(document).ready(function() {
            $("#my").removeClass("overlayPopup");
         });/*from  w  w  w.j av a2s  .c  o  m*/
      
      </script> 
   </head> 
   <body> 
      <div id="my" class="overlayPopup"></div>  
   </body>
</html>

Related Tutorials