I have a code like this:
<div id="advertisement-template" style="display:none;">
</div>
and there is an element like this inside
<script type="text/javascript">
....................
....................
....................
});
</script>
When I use <script type="...
element by itself it works but when it is inside <div id="advertisement-template" style="display:none;">
it doesn't show up. I cannot change anything above or inside <div id="advertisement-template" style="display:none;">
, I can only put something between <div id="advertisement-template" style="display:none;">
and </div>
to make the element show up.
I have checked this page and this one but haven't found a solution.
I don't know much about coding yet but I need a solution for this problem. Please help.