jquery in script tag code example Example: how add script to html in jquery $.getScript("test.js", function(){ alert("Running test.js"); });