I want to know that, is it possible to bypass one tags data-attribute into another tag using javascript or jquery ?
For example, if I write this tag <span id="mycode" data-attribute="my-code"></span> in anywhere inside body, the data-attribute tag will be append automatically in body tag <body data-attribute="my-code"></body>
When I create a template, the <body> tag is without any attribute. I want that, when I'll write this tag with attribute (<span data-attribute="my-code">), only the attribute will be add in body tag (<body>).
If somebody know, please help me.