Return unique ID with jQuery.data(elem)

Return unique ID with jQuery.data(elem)

Before 1.4, it is possible to return an unique ID with jQuery.data(elem), now seems does not work.


The new api must need a key, what is the key then?

I just want an unique ID by inputing an element, why I need such a key?


Thanks.