Query style : query « Dojo toolkit « JavaScript DHTML






Query style

 
<html>
  <head>
    <style>
      .myStyle {
        color : #ff0000;
      }
    </style>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      function testIt() {
        alert(dojo.query(".myStyle"));
      }
    </script>
  </head>
  <body onLoad="testIt();">
    <div id="div1" class="myStyle">&nbsp;</div>

  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Query dojo icon class with dojo.query()
2.Query element id and add action
3.Query style from tag
4.Query to object
5.Object to query
6.Get tag by ID and change inner html