I have a single HTML file which contains several computation intensive charts which update themselves regularly. The HTML file only shows small parts of the whole content by using JavaScript and a tab-like interface.
My code looks similar to the following:
<a href="">Tab1</a> <a href="">Tab2</a> <a href="">Tab3</a>
<div>
<div id="tab1">
charts
</div>
<div id="tab2">
charts
</div>
<div id="tab3">
charts
</div>
</div>
Now I would like to (for example) show some contents of tab1 in tab3. I can not copy/clone them, as it would use too much resources. I thought about moving the DOM node between tab1 and tab2 everytime the tab changes. But that is not very convenient. Is there another solution? Can I somehow "link" to the content of another DOM element?