Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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!");
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #test #jquery #works
ADD COMMENT
Topic
Name
9+8 =