Data Storage
These methods allow us to associate arbitrary data with specific DOM elements.
-
.data()
Store arbitrary data associated with the matched elements.
-
.removeData()
Remove a previously-stored piece of data.
These methods allow us to associate arbitrary data with specific DOM elements.
Store arbitrary data associated with the matched elements.
Remove a previously-stored piece of data.