Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Forked from iwa4/chrome-console-load-jquery.js
Last active August 29, 2015 13:57
Show Gist options
  • Save rajeshpv/9399611 to your computer and use it in GitHub Desktop.
Save rajeshpv/9399611 to your computer and use it in GitHub Desktop.
var jq = document.createElement('script');
jq.src = "//code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
!function () {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-2.0.0.min.js");
document.body.appendChild(script);
}();
$( "li" ).each(function( index ) {
console.log( index + ": " + $( this ).text() );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment