Check if jQuery library is loaded


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

To check if jQuery library is loaded, use the following JavaScript code


Copy this code and paste it in your HTML
  1. if (typeof jQuery != 'undefined') {
  2. alert("jQuery library is loaded!");
  3.  
  4. }else{
  5.  
  6. alert("jQuery library is not found!");
  7.  
  8. }

URL: http://simply-tutorial.com/blog/2010/05/21/how-to-check-if-jquery-library-is-loaded-/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.