if (typeof jQuery == "undefined") { alert("JQuery is not installed"); } else { alert("JQuery is installed correctly!"); }