How to remove previous tabs content from document structure?

Hi,
I have two tabs and the user interface for both the tab content is exactly same. Tried using the same jsp page but as tabbar doesn’t remove previous tabs content from document structure there are two ids present in document structure for each text field, dropdown etc because of which javascript functions are not responding properly.
Is there a way to stop caching of previous tab content?

Thanks

Hi,

if you use “iframe” loading mode, the page of iframe will be reloaded each time the tab is selected.

However, If you want to remove the tabbar content, you may try to use the following:

var elem = document.getElementById(“containerId”);
elem.parentNode.removeChild(elem);

containerId is the id of the container that you’ve attached to a tab.