Skip to content

Instantly share code, notes, and snippets.

@beratdogan
Created December 25, 2013 22:25
Show Gist options
  • Save beratdogan/8127547 to your computer and use it in GitHub Desktop.
Save beratdogan/8127547 to your computer and use it in GitHub Desktop.
Sometimes you'll need jQuery on non-JS pages. In such a situation, you can include jQuery with this code.
jq = document.createElement('script');
jq.type = "text/javascript";
jq.src = 'http://code.jquery.com/jquery-1.10.2.min.js';
document.body.appendChild(jq);
// try: jQuery and have fun!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment