slideToggle bug?
slideToggle bug?
I was using slideToggle in a project that had some javascript inside
the div I was toggling. It seems each time I toggle this effect and
display the content the javascript inside is re-executed.
Here is an example of what is inside this area:
<script>
var newspan = document.createElement("span");
newspan.innerHTML = "my content"
var container = document.getElementById("myID");
container.appendChild(newspan);
</script>
Should this be happening?