Html page with jquery and dir=rtl - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:html

Description

Html page with jquery and dir=rtl

Demo Code

ResultView the demo in separate window

<html>
   <head></head>
   <body> 
      <h1>Blank screen test</h1> 
      <div style="padding: 50%; background-color: orange;">
         Hey//from ww  w . j  a va2 s.  c o  m
      </div> 
      <script src="https://code.jquery.com/jquery-1.11.1.js"></script> 
      <script type="text/javascript">
      $(document).ready(function() { $('html').attr('dir', 'rtl'); });
    
      </script>  
   </body>
</html>

Related Tutorials