3 ms·
It looks like this ascends the list of parents for an element to generate a signature. This falls apart if you move an element somewhere else in the DOM - a dif
by bdunn 14y ago
It looks like this ascends the list of parents for an element to generate a signature. This falls apart if you move an element somewhere else in the DOM - a different signature, but it's really the same node.
IMO the best approach is still to use $.data('my_element', el)
- arunoda 14y agoYes. You got a valid point here. This does not gonna work for 100% for dynamically generated content. But should work for statically generated contents. $.data('my_element', el) works if you everything works on the same page without refreshing the window. But I wanted a way to store the signature on a DB and make it highlighted at some point later.