Dynamically change CSS - Javascript jQuery

Javascript examples for jQuery:CSS

Description

Dynamically change CSS

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.js"></script> 
      <script type="text/javascript">
    $(function(){//  www . j a v  a2  s. c  om
$('.page').css("margin", "");
    });

      </script> 
   </head> 
   <body> 
      <div style="margin: 10px" class="page">
         div1
      </div> 
      <div style="margin: 10px" class="page">
         div2
      </div>  
   </body>
</html>

Related Tutorials