How does jQuery .data() work?

Posted by kazanaki on Stack Overflow See other posts from Stack Overflow or by kazanaki
Published on 2010-05-04T10:53:25Z Indexed on 2010/05/04 10:58 UTC
Read the original article Hit count: 299

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about data