How do I add Script in the (head) by jquery
Experimented with this, but did not succeed
$("head").append("<script type='text/javascript' src='http//aps.js'></script>");
How do I add tag
<script></script>
in head ??
How do I add Script in the (head) by jquery
Experimented with this, but did not succeed
$("head").append("<script type='text/javascript' src='http//aps.js'></script>");
How do I add tag
<script></script>
in head ??
Try that:
$(function(){
var _Script = document.createElement('script');
_Script .type = 'text/javascript';
_Script .src = "http//aps.js";
$("head").append(_Script);
});
--- EDIT
Well, on second thought - why do you exactly need to insert script in the head?