I need to dynamically add more items (videos. which is in script form) to div. In below code, append doesn't do anything. I have tried to append script in string form too (i.e. ""). I appreciate any help!!!!
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div>
<script type="text/javascript" src="http://video.foxnews.com/v/embed.js?id=1993203907001&w=466&h=263"></script>
</div>
<script>
$(document).ready(function() {
var script = document.createElement( 'script' );
script.type = 'text/javascript';
script.src = 'http://video.foxnews.com/v/embed.js?id=1993203907001&w=466&h=263';
$("div").append(script);
});
</script>
</body>
</html>