How does jQuery .data() work?
- by kazanaki
My Javascript knowledge is pretty limited.
Instead of asking several javascript questions I got the "message" from Stack overflow and started using jQuery right away in order to save me some time.
However several times I do not undestand the "magic" behind jQuery and I would love to learn the details.
I want to use .data() in my application. The examples are very helpful. I do not understand however WHERE these values are stored.
I inspect the webpage with Firebug and as soon as .data() saves an object to a dom element, I do not see any change in Firebug (either HTML or Dom tabs).
I tried to look at jQuery source, but it is very advanced for my Javascript knowledge and I lost myself.
So the question is:
Where do the values stored by jQuery.data() actually go? Can I inspect/locate/list/debug them using a tool?