Answers for "if jquery exists"

0

javascript if has jquery loaded

window.onload = function() {
    if (window.jQuery) {  
        // jQuery is loaded  
        alert("Yeah!");
    } else {
        // jQuery is not loaded
        alert("Doesn't Work");
    }
}
Posted by: Guest on December-16-2020
0

Is there an “exists” function for jQuery

if ($(selector).length)
Posted by: Guest on May-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language