Possible duplicate:
How does jQuery.data () work?
<script>
$("div").data("test", { first: 16, last: "pizza!" });
</script>
I thought that with the help of Google Chrome Developer Tools, I could see something like:
<div first="16" last="pizza!"></div>
but i could not.
How exactly .data () attaches data to elements? Is there any chance that I can see / check data without calling the .data () method?
source
share