Any idea why the piece of code below does not add the script element to the DOM?

var code = "<script></script>";
$("#someElement").append(code);

18 Answers
18

Leave a Reply

Your email address will not be published. Required fields are marked *