I have the following code:
var refreshId = setInterval(function()
{
$("#footad").html('myjshere');
}, 15500);
Where it says myjshere I want to load this content into the div:
<script type='text/javascript'>
AdServer.placeAd({"sz":"728x90","pos":1});
</script>
But when I try just having it where myjshere is, it throws out a syntax error?
Any help?
To clear up the confusion I was put the JavaScript where myjshere is I just used the word myjshere as a place holder to show you what I was doing. Sorry for the confusion. The issue is that when I put the javascript within the jQuery it does not work and returns an error: invalid syntax.
The issue is that when I put the javascript within the jQuery it does not work and returns an error: invalid syntax.Show us this code