Understanding jQuery’s Data API’s
jQuery’s Core Team Member, Dave Methvin has a great write up on LearningjQuery.com called ” Using jQuery’s Data API “. He walks us through the beginning thoughts on what the .data() API was meant for, a DOM based In-Memory storage, to how it evolved into reading the data attribute in HTML5. Dave outlines 5 rules of the road for using .data(): Only the .data() API reads HTML5 data-* attributes, and it does so once
Read more here:
Understanding jQuery’s Data API’s


