JQuery Load Javascript Dynamically | Dynamic JS Loading
var script = document.createElement("SCRIPT"); script.src = '//code.jquery.com/jquery-latest.min.js'; script.type = 'text/javascript'; script.onload = function() { var nj = jQuery.noConflict(true); alert(jn.find("body").length); }; document.getElementsByTagName("head")[0].appendChild(script);
No comments:
Post a Comment