Make rgba feature work during box-shadow editing with jquery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jQuery Method Example

Description

Make rgba feature work during box-shadow editing with jquery

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-git.js"></script> 
  <script type="text/javascript">
    $(window).on('load', function() {
 $(".selector").css({
   "box-shadow": "4px 4px 4px 4px rgba(0,0,0, 0.3)",
 });//from www . j  a  v a 2 s . c o m
    });

      </script> 
 </head> 
 <body> 
  <div class="selector" style="background-color:red">
    test 
  </div>  
 </body>
</html>

Related Tutorials