If jQuery is installed and running : jQuery « jQuery « JavaScript DHTML






If jQuery is installed and running

 
<html>
  <head>
    <script type='text/javascript' src='js/jquery-1.3.2.js'></script>
    <script type='text/javascript'>
if ($) {
  $(document).ready(
    function() {
      $('p').addClass('Loaded');
      $('p').text('jQuery loaded and running!');
    }
  );
}    
    </script>
    <style type='text/css'>
p.Loaded {
    color: green;
    border: 1px solid green;
}    
    </style>
  </head>
  <body>
    <p>
        jQuery is not loaded.
    </p>
  </body>
</html>

   
  








Related examples in the same category

1.Adds two functions into the jQuery namespace.
2.Adds two plugin methods.
3.Is jQuery ready
4.Create Text node from query list
5.Show the order in the jQuery object.
6.Pass array returned from jQuery to a function