Created
May 2, 2017 12:56
-
-
Save SamuelTulach/9fc27dbf2702022316129117166d67e0 to your computer and use it in GitHub Desktop.
Load jQuery to webpage from script
This file contains 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 addjquery(){ | |
// Add jQuery to page | |
var jqueryscript = document.createElement('script'); | |
jqueryscript.setAttribute('src','https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'); | |
document.head.appendChild(jqueryscript); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment