Answers for "see if jquery runs"

4

check if jquery is loaded

$(document).ready(function(){
  if (jQuery) {  
    // jQuery is loaded  
    alert("Yeah!");
  } else {
    // jQuery is not loaded
    alert("Doesn't Work");
  }
});
Posted by: Guest on April-15-2020
2

test if jquery works

/* Answer to: "test if jquery works" */

window.onload = function() {
    if (window.jQuery) {  
        // jQuery is loaded  
        console.log("jQuery has loaded!");
    } else {
        // jQuery is not loaded
        console.log("jQuery has not loaded!");
    }
}
Posted by: Guest on March-08-2020

Code answers related to "see if jquery runs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language