[jQuery] Save reference to a element
I want a user to be able to reference (by clicking) an element on a web page and then save a reference to that element in a database for later retrieval. What's the best way to do this? (Assume that the html page will never change). I could save some sort of path (body > div > div > ul > li > a...etc). If so, is there a way to make an element spit out it's path, or at least some sort of unique identifier that can be used later to reference it. Whatever I use to reference it must be able to be saved as a string so it can be stored away.