Created
August 11, 2014 20:26
-
-
Save premchandpl/8c1fa8a92437174c2a34 to your computer and use it in GitHub Desktop.
Adding jquery references dynamically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function LoadResources() { | |
| if (typeof (jQuery) == "undefined") { | |
| var script = document.createElement("script") | |
| script.type = "text/javascript"; | |
| script.src = "https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.0.min.js"; | |
| document.getElementsByTagName("head")[0].appendChild(script); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment