KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to know the difference between saving data to an element using $(element).data({'foo' : 'bar'}) vs $(element).attr({ 'data-foo' : 'bar' }) . And which of the two method would be best to use when saving a large amount of data in to an element? Thanks
Tags (comma-separated)
Save Edits
Cancel