/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* I used to use (!$) or ($ == undefined) but that doesn't work sucka! */ if (!window.jQuery) { var jqscript = document.createElement('script'); jqscript.setAttribute("type", "text/javascript"); jqscript.setAttribute("src", "http://code.jquery.com/jquery.min.js"); document.getElementsByTagName("head")[0].appendChild(jqscript); };