`-ms-touch-action` style with $.css() - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:css

Description

`-ms-touch-action` style with $.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.9.1.js"></script> 
  <script type="text/javascript">
    $(function(){//  w  ww  . j a va  2s.c om
var elem = document.getElementById("demo");
elem.setAttribute("style","position:relative;-ms-touch-action:none;height: 100%,");
$('body').append($('#demo').attr('style'));
    });

      </script> 
 </head> 
 <body> 
  <div id="demo">
    Demo 
  </div>  
 </body>
</html>

Related Tutorials