Published
- 1 min read
test if jquery works
The solution for this is noted below
test if jquery works
Solution
/* 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!')
}
}
Try other methods by searching on the site. That is if this doesn’t work