Is there any way to change the position of a template from one container to another on triggering an event. without destroying/ Re-rendering it?
Suppose I have 2 DIVs as DIV-1 and DIV-2, I have already rendered a template in DIV-1. Now on the click event of a button I just want to copy the code of that template from DIV-1 and paste it into DIV-2 without destroying that template. What should I do??
<button> Swap Template DIVs </button>
<!-- Template should be added here on click event -->