jQuery - MOVE div with prependTo - How to save on CLICK?

Hi guys,

I am really hope that somebody can help me out here. I am trying to move a complete DIV inside another with jQuery this works now this is my function:

/* Header Icons - Detach and AppendTo another section->DIV */
$(window).load(function() {
	var cloneContent = function() {
		$("#header-icon-container").prependTo(".shop-upper-container");
		$("#main-dropdown.header-dropdown").prependTo(".shop-upper-container");		
	}
	cloneContent();		
}); 

But there is a navigation WHICH does NOT refresh pages but instead loads different DYNAMIC content. But when i CLICK the div dissapears and i have to refresh the page in order to see it again.

Is there any solution on how i can solve this to STAY in place?

Hi,
Can you provide a minimal example that we can run to recreate your problem?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.