Posted By

cczona on 06/12/08


Tagged

jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

orion
jserpa


Confirm that jQuery has loaded


 / Published in: JavaScript
 

  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3. alert('hi');
  4. });
  5. </script>
  6.  
  7. -or-
  8.  
  9. <script type="text/javascript">
  10. if (jQuery) {
  11. alert("jQuery loaded");
  12. };
  13. </script>

Report this snippet  

You need to login to post a comment.