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