On my page I have a button that unwraps all the <article> from it’s containers and after that wrap each one separately into <section>.
My question is if it’s possible to reverse that action by clicking a button so that all the <article> would group back into the same position they were at the beginning?
I’ve created an example:
My method just uses jQuery
.clone();method.Reference: jsFiddle
jQuery Code: