There are two blocks:
<div class="myclass">1</div> <div class="myclass">2</div> For block 1, I generated a number, suppose '111', and for block 2 - '222'. I would like to assign identifiers to these blocks based on the generated digits. But so that they do not appear on the page of the type: <div class="myclass" data-myid="111">1</div> .
I want to hide these identifiers in the DOM tree. And at a certain point, find, access them by the generated numbers '111' and '222' to transfer / clone / delete the corresponding block.
Tell me, please, how can this be done? It is desirable only to Javascript without jQuery.
data-myidat the right time for you and contact them? - Vadim Ovchinnikov