jeudi 16 juin 2016

Can you prevent autoremove JQuery Data when you remove the element from the DOM?


Is it possible to prevent auto removal of JQuery data when removing the element from the DOM?

When i for example set some data on a JQuery object for example:

$("#x").data("name", "assassinbeast");

And if I remove it from the DOM and append it to the DOM again, then all the data is gone.


Aucun commentaire:

Enregistrer un commentaire