Answers for "how to append script tag to html file in jquery"

0

append scripts using jquery

var s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://somedomain.com/somescript";
$("head").append(s);
Posted by: Guest on August-29-2020
1

how add script to html in jquery

$.getScript("test.js", function(){
    alert("Running test.js");
});
Posted by: Guest on April-19-2021

Code answers related to "how to append script tag to html file in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language