Advertisement
DaRedJumper

Append JQUERY (javascript)

Sep 25th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. -- Apend Jquery --
  2. const script = document.createElement("script");
  3. script.setAttribute("type", "text/javascript");
  4. script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js");
  5. // note that you could use script.type and script.src, but using the setAttribute method is considered better practice
  6. document.head.append(script);
  7. (Javascript)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement