Skip to content

Instantly share code, notes, and snippets.

@C-F-4
Created July 12, 2018 08:44
Show Gist options
  • Select an option

  • Save C-F-4/e831c4cca8e044119be43d7fa47a758d to your computer and use it in GitHub Desktop.

Select an option

Save C-F-4/e831c4cca8e044119be43d7fa47a758d to your computer and use it in GitHub Desktop.
// 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