Created
July 12, 2018 08:44
-
-
Save C-F-4/e831c4cca8e044119be43d7fa47a758d to your computer and use it in GitHub Desktop.
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
| // injection technique borrowed from http://stackoverflow.com/questions/840240/injecting-jquery-into-a-page-fails-when-using-google-ajax-libraries-api | |
| window.onload = function () { | |
| var script = document.createElement("script"); | |
| script.src = "https://code.jquery.com/jquery-3.3.1.min.js"; | |
| script.onload = script.onreadystatechange = function () { | |
| $(document).ready(function() { | |
| $("#lst-ib").val("Hello, World!"); | |
| }); | |
| }; | |
| document.body.appendChild(script); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment