Confirm that jQuery has loaded


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.