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