0

I dynamically load the whole page inside one DIV element with the help of javascript. But when I close the div I am using ("#Viewer").remove() . But still the javascrpit/jquery loaded inside that element is in work. How can I remove the effect of that too.

There is one Viewer DIV. Into which I am loading the whole another page. When I close this I use ("#Viewer").remove() . When it is first loaded there are some animations and transitions associated with it are happening on other data loaded afterwords.

Please help. Thank you.

4

1 Answer 1

0

After I ead the duplicates suggestes this one works

<script type="text/javascript" id="myScript">
</script>

and removing with

 $("#myScript").remove();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.