Posted By

luhonghai on 01/14/15


Tagged

javascript jquery


Versions (?)

Check if jQuery library is loaded


 / Published in: jQuery
 

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

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

  1. if (typeof jQuery != 'undefined') {
  2. alert("jQuery library is loaded!");
  3.  
  4. }else{
  5.  
  6. alert("jQuery library is not found!");
  7.  
  8. }

Report this snippet  

You need to login to post a comment.