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

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

<p>Please help.
Thank you.</p>
